[Bug c++/37087] Segfault on compiling template defined in wrong namespace.

paolo at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Aug 12 19:40:00 GMT 2008



------- 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



More information about the Gcc-bugs mailing list