This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26266] [4.0/4.1/4.2 regression] Trouble with static const data members in template classes
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Feb 2006 20:38:39 -0000
- Subject: [Bug c++/26266] [4.0/4.1/4.2 regression] Trouble with static const data members in template classes
- References: <bug-26266-6594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from reichelt at gcc dot gnu dot org 2006-02-14 20:38 -------
One more datapoint:
The following invalid testcase is accepted since GCC 4.0.2:
===============================
template<int> struct A
{
static const int i = A();
};
A<0> a;
===============================
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26266