This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16074] Diagnostic in gcc, no error on Comeau (strict)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]