This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32308] [4.1/4.2/4.3 Regression] template <typename T> int CTemp< int >::sta; make the error
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jun 2007 18:46:58 -0000
- Subject: [Bug c++/32308] [4.1/4.2/4.3 Regression] template <typename T> int CTemp< int >::sta; make the error
- References: <bug-32308-14689@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from rguenth at gcc dot gnu dot org 2007-06-12 18:46 -------
should read
template <> int CTemp< int >::sta;
because
t.C(13): error: "CTemp<int>" is not a class template
template <class T> int CTemp< int >::sta;
^
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-invalid-code
Known to work| |3.4.6
Last reconfirmed|0000-00-00 00:00:00 |2007-06-12 18:46:57
date| |
Summary|template <typename T> int |[4.1/4.2/4.3 Regression]
|CTemp< int >::sta; make the |template <typename T> int
|error |CTemp< int >::sta; make the
| |error
Target Milestone|--- |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32308