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++/32308] [4.1/4.2/4.3 Regression] template <typename T> int CTemp< int >::sta; make the error



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


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