[Bug c++/79580] [5/6 Regression] ICE in nested_anon_class_index, at cp/mangle.c:1604
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 12 19:24:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79580
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Apr 12 19:22:44 2017
New Revision: 246886
URL: https://gcc.gnu.org/viewcvs?rev=246886&root=gcc&view=rev
Log:
PR c++/79580 - ICE with compound literal
* parser.c (cp_parser_class_head): If we're in the middle of an
expression, use ts_within_enclosing_non_class.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/ext/complit15.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/parser.c
More information about the Gcc-bugs
mailing list