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 06:29:29 -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 #2 from sambitdash at gmail dot com 2006-06-05 06:29 -------
So is:
struct A
{
};
template<> A i;
which means the specilization syntax does not mandate a need the qualifying
class needs to be a template type. That looks interesting!!!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18747