This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37087] Segfault on compiling template defined in wrong namespace.
- From: "paolo at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Aug 2008 19:39:26 -0000
- Subject: [Bug c++/37087] Segfault on compiling template defined in wrong namespace.
- References: <bug-37087-16585@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from paolo at gcc dot gnu dot org 2008-08-12 19:39 -------
Subject: Bug 37087
Author: paolo
Date: Tue Aug 12 19:38:02 2008
New Revision: 139034
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139034
Log:
/cp
2008-08-12 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/37087
* parser.c (cp_parser_class_head): Early return error_mark_node in
case of global qualification of class name or qualified name that
does not name a class.
/testsuite
2008-08-12 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/37087
* g++.dg/template/crash80.C: New.
* g++.old-deja/g++.other/decl5.C: Adjust.
Added:
trunk/gcc/testsuite/g++.dg/template/crash80.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.old-deja/g++.other/decl5.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37087