This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30539] New: Accepts invalid explicit specialization declaration
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2007 01:50:40 -0000
- Subject: [Bug c++/30539] New: Accepts invalid explicit specialization declaration
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid code (note the duplicate X<1>::X<1>::) is accepted
and apparently has always been:
------------
template <int dim> struct X {
void f();
};
template <> void X<1>::X<1>::f();
------------ ^^^^^^^^^^^^
--
Summary: Accepts invalid explicit specialization declaration
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30539