This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22354] g++ accepts specializiation without declaration
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2005 19:33:00 -0000
- Subject: [Bug c++/22354] g++ accepts specializiation without declaration
- References: <20050707190900.22354.tneumann@pi3.informatik.uni-mannheim.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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