2013-02-19
2013-02-19 15:11:02 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
0b36afb6459cb4e451a8fb592172eee260fffa8d
(5 lines)
(+3/-2)
[
Show
| Annotate
]
Branch: 7.9
Compiler: Improved diagnostics for invalid soft casts.
1346: Inside #if defined(NEW_ARG_CHECK)
ref_push_type_value(n->type);
ref_push_type_value(type);
yytype_report(REPORT_ERROR,
- NULL, 0, NULL,
- NULL, 0, NULL,
+ NULL, 0, type,
+ NULL, 0, n->type,
2, "Soft cast of %O to %O isn't a valid cast.");
} else if (result_type == n->type) {
ref_push_type_value(n->type);