PR c++/79580 - ICE with compound literal
authorJason Merrill <jason@redhat.com>
Mon, 20 Feb 2017 06:05:08 +0000 (01:05 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 20 Feb 2017 06:05:08 +0000 (01:05 -0500)
commitde59c92b44f5e67a90268e2d0f6f3efd6c8e3354
treed7c91db51add3280adf8cbc042c28e515b0a3de3
parentb80dfe4441b689217cb3aefbc24c90d97b17d154
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.

From-SVN: r245587
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/ext/complit15.C [new file with mode: 0644]