This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18747] "template<> int i;" accepted
- From: "sambitdash at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jun 2006 13:46:13 -0000
- Subject: [Bug c++/18747] "template<> int i;" accepted
- References: <bug-18747-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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