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++/22354] g++ accepts specializiation without declaration


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-07 19:32 -------
Confirmed, not a regression.
Here is a testcase which is a little shorter and a little easier to see what is happening:
template <int i> struct B {
 static const char *b;
};
// Should be required, g++ does not need them
//template<> const char*  B<1>::b;
//template<> const char*  B<2>::b;
template<> const char * B<1>::b = (char*)&B<2>::b;
template<> const char *B<2>::b = (char*)&B<1>::b;

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |accepts-invalid
      Known to fail|                            |2.95.3 3.2.3 3.3.3 3.4.0
                   |                            |4.0.0 3.0.4 4.1.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-07 19:32:51
               date|                            |


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


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