This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11948] [3.3 Regression] ICE on illegal code: initialising a static data member
- 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: 16 Aug 2003 14:57:37 -0000
- Subject: [Bug c++/11948] [3.3 Regression] ICE on illegal code: initialising a static data member
- References: <20030816144802.11948.o.kullmann@swansea.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11948
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-invalid-code
Last reconfirmed|0000-00-00 00:00:00 |2003-08-16 14:57:37
date| |
Summary|ICE on illegal code: |[3.3 Regression] ICE on
|initialising a static data |illegal code: initialising a
|member |static data member
Target Milestone|3.4 |3.3.2
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-16 14:57 -------
I can confirm this on 3.3.2 (20030815). It is already fixed on the mainline (20030815).
>From Phil's regression hunter: Search converges between 2002-09-29-trunk (#91) and 2002-10-
02-trunk (#92).
It was accepted before that date.
Reduce code:
int f();
template <class T> struct X {
static const int max = f();
X() : m(max) {}
int m;
};
template <class T> const int X<T>::max;
template struct X<int>;
int main() { X<int> x; }