[Bug c++/79580] [5/6/7 Regression] ICE in nested_anon_class_index, at cp/mangle.c:1604
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 20 06:05:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79580
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Feb 20 06:05:08 2017
New Revision: 245587
URL: https://gcc.gnu.org/viewcvs?rev=245587&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:
trunk/gcc/testsuite/g++.dg/ext/complit15.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
More information about the Gcc-bugs
mailing list