re PR c++/47482 ([C++0x] ICE: unexpected expression ‘sizeof ("A")’ of kind sizeof_expr)
authorJason Merrill <jason@redhat.com>
Mon, 14 Feb 2011 21:52:24 +0000 (16:52 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 14 Feb 2011 21:52:24 +0000 (16:52 -0500)
commitc9e71b36cfef620a506f37e5922f1cf68c7869a8
tree3f1f70c2b7ef7068bf0c900a03e3380d42af6abb
parentb09c308168b572a21c7b540117358f3e2b470ce5
re PR c++/47482 ([C++0x] ICE: unexpected expression ‘sizeof ("A")’ of kind sizeof_expr)

PR c++/47482
* parser.c (cp_parser_enumerator_definition): Call
fold_non_dependent_expr.

From-SVN: r170156
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/regress/enum1.C [new file with mode: 0644]