Summary: | Segfault on compiling template defined in wrong namespace. | ||
---|---|---|---|
Product: | gcc | Reporter: | kenton <kenton> |
Component: | c++ | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bangerth, gcc-bugs |
Priority: | P3 | Keywords: | ice-on-invalid-code |
Version: | 4.0.3 | ||
Target Milestone: | 4.4.0 | ||
Host: | i486-pc-linux-gnu | Target: | i486-pc-linux-gnu |
Build: | i486-pc-linux-gnu | Known to work: | 4.4.0 |
Known to fail: | 4.3.1 | Last reconfirmed: | 2008-08-11 22:41:51 |
Description
kenton@google.com
2008-08-11 22:23:39 UTC
Fix: Unknown. 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 Fixed for 4.4.0. This also failed with 4.2.1, and the reporter's compiler was 4.0. Paolo, do you want to apply your patch to 4.3.x as well? If not, I vote for closing the PR: It's not a recent regression, it's an ICE on invalid, and unless you apply the patch there is unlikely going to be any further activity. W. Let's close it, as you say it's invalid code, not a regression. |