OSDN Git Service

PR c++/41127
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Aug 2009 21:08:33 +0000 (21:08 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Aug 2009 21:08:33 +0000 (21:08 +0000)
commite72cb4332ac94ca1067b554ab6a05b5c650e2fce
treeb537b9171c36f4e0dd6e65827429225942e5633d
parente8152f13490bf1b3e3a94c318d83a750d562e5b2
PR c++/41127
* parser.c (cp_parser_enum_specifier): Make sure the : is followed by a
type-specifier-seq before we commit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151246 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/enum1.C
gcc/testsuite/g++.dg/parse/enum5.C [new file with mode: 0644]