This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15227] New: [3.3/3.4/3.5 regression] Trouble with invalid function definition
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Apr 2004 14:49:12 -0000
- Subject: [Bug c++/15227] New: [3.3/3.4/3.5 regression] Trouble with invalid function definition
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following testcase (which is invalid, as A::B doesn't exist)
causes trouble:
=============================================
template<typename> struct A {};
template<typename T> void A<T>::B::foo() {}
=============================================
GCC 2.95.3 correctly rejects the code,
gcc 3.1 - 3.3.4 wrongly accept it,
gcc 3.0.x, 3.4.0 and mainline segfault.
--
Summary: [3.3/3.4/3.5 regression] Trouble with invalid function
definition
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, accepts-invalid
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15227