diff options
| author | gingerBill <bill@gingerbill.org> | 2019-10-15 20:47:27 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-10-15 20:47:27 +0100 |
| commit | 12ae5ed09e3e798147d2f940cabfbdcead638272 (patch) | |
| tree | 9da06133b519ada3a058dcff95032a4c99b4bdf5 /src | |
| parent | 0bdc3b4f21eca0ff15d5053348711f4b60b7baab (diff) | |
Fix missing typeid conversion case for variadic parameters
Diffstat (limited to 'src')
| -rw-r--r-- | src/check_expr.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index f8bb88595..44bbc8988 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -5339,6 +5339,10 @@ CALL_ARGUMENT_CHECKER(check_call_arguments_internal) { if (is_type_any(elem)) { add_type_info_type(c, o.type); } + if (o.mode == Addressing_Type && is_type_typeid(t)) { + add_type_info_type(c, o.type); + add_type_and_value(c->info, o.expr, Addressing_Value, t, exact_value_typeid(o.type)); + } } } } |