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++/18747] "template<> int i;" accepted



------- Comment #3 from sambitdash at gmail dot com  2006-06-05 13:46 -------
>From the C++ standard draft specification

An explicit specialization of any of the following:
? function template
? class template
? member function of a class template
? static data member of a class template
? member class of a class template
? member class template of a class template
? member function template of a class template
can be declared by a declaration introduced by template<>; that is:
explicit specialization:
template < > declaration

Hence this is a bug. 


-- 

sambitdash at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sambitdash at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18747


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