[Bug c++/65954] gcc segfaults on the following input with a syntax error

2015-05-21 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65954

Nathan Sidwell nathan at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #2 from Nathan Sidwell nathan at gcc dot gnu.org ---
Added expected diagnostic


[Bug c++/65954] gcc segfaults on the following input with a syntax error

2015-05-19 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65954

--- Comment #1 from Nathan Sidwell nathan at gcc dot gnu.org ---
Author: nathan
Date: Wed May 20 01:54:09 2015
New Revision: 223430

URL: https://gcc.gnu.org/viewcvs?rev=223430root=gccview=rev
Log:
cp/
PR c++/65954
* typeck.c (finish_class_member_access_expr): Diagnose failed
lookup of enum class member.

testsuite/
* g++.dg/cpp0x/pr65954.C: New.

Added:
trunk/gcc/testsuite/g++.dg/cpp0x/pr65954.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog