2014-12-04
2014-12-04 19:23:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
19cc40492ca51f3b755afbb02d34d518bf5e8979
(5 lines)
(+3/-2)
[
Show
| Annotate
]
Branch: bill/master_archive_support
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);