aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-10-15 20:47:27 +0100
committergingerBill <bill@gingerbill.org>2019-10-15 20:47:27 +0100
commit12ae5ed09e3e798147d2f940cabfbdcead638272 (patch)
tree9da06133b519ada3a058dcff95032a4c99b4bdf5 /src/check_expr.cpp
parent0bdc3b4f21eca0ff15d5053348711f4b60b7baab (diff)
Fix missing typeid conversion case for variadic parameters
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp4
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));
+ }
}
}
}