diff options
author | Jason Merrill <jason@redhat.com> | 2015-08-12 14:02:35 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2015-08-12 14:02:35 -0400 |
commit | e5e58dbe28b71a17cb2e3e02fdf42d654e6ccd00 (patch) | |
tree | 4b721044a7dd123ef8bf99b63365f215c68af112 /gcc/cp/error.c | |
parent | a024f5143d592db41c5316c24d3e10fd86c839ec (diff) | |
download | gcc-e5e58dbe28b71a17cb2e3e02fdf42d654e6ccd00.zip gcc-e5e58dbe28b71a17cb2e3e02fdf42d654e6ccd00.tar.gz gcc-e5e58dbe28b71a17cb2e3e02fdf42d654e6ccd00.tar.bz2 |
re PR c++/67108 (ICE: in cxx_eval_call_expression, at cp/constexpr.c:1345 when dumping)
PR c++/67108
* decl2.c (c_parse_final_cleanups): Set at_eof to 2 at end.
* error.c (dump_template_bindings): Don't tsubst in that case.
From-SVN: r226829
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index ae3e092..faf8744 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -339,6 +339,11 @@ dump_template_bindings (cxx_pretty_printer *pp, tree parms, tree args, && !DECL_LANG_SPECIFIC (current_function_decl)) return; + /* Don't try to do this once cgraph starts throwing away front-end + information. */ + if (at_eof >= 2) + return; + FOR_EACH_VEC_SAFE_ELT (typenames, i, t) { if (need_semicolon) |