This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53003] Internal compiler error on short testcase
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 17 Apr 2012 17:45:35 +0000
- Subject: [Bug c++/53003] Internal compiler error on short testcase
- Auto-submitted: auto-generated
- References: <bug-53003-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53003
--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-04-17 17:45:35 UTC ---
Author: paolo
Date: Tue Apr 17 17:45:25 2012
New Revision: 186544
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186544
Log:
/cp
2012-04-17 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/53003
* parser.c (cp_parser_member_declaration): Check that
initializer_token_start is non null before dereferencing it.
/testsuite
2012-04-17 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/53003
* g++.dg/parse/crash59.C: New.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/parse/crash59.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/parser.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog