This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16074] Diagnostic in gcc, no error on Comeau (strict)
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jun 2004 10:41:46 -0000
- Subject: [Bug c++/16074] Diagnostic in gcc, no error on Comeau (strict)
- References: <20040619102627.16074.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-06-19 10:41 -------
This looks like a bug (or extension?) in Comeau/EDG to me. You always need a
template header for each template in the qualified name, so the decalartion
should be:
template<typename T>
template<>
struct A<T>::B<1> {};
but then it is an explicit specialization without specializing the enlcosing
classes, which is forbidden by [temp.expl.spec]/18.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16074