This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12167] [3.4 Regression] ICE on default argument of class member function if non-simple
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Sep 2003 14:49:49 -0000
- Subject: [Bug c++/12167] [3.4 Regression] ICE on default argument of class member function if non-simple
- References: <20030904140905.12167.stefaandr@hotmail.com>
- 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=12167
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[3.4 Regression]ICE on |[3.4 Regression] ICE on
|default argument of class |default argument of class
|member function if non- |member function if non-
|simple |simple
------- Additional Comments From bangerth at dealii dot org 2003-09-04 14:49 -------
This seems to go into an infinite loop for me:
-------------------------------------------------
class A {
void report(double d
= (__extension__ ((union { unsigned __l __attribute__((__mode__(__SI__)));
float __d; }) { __l: 0x7fc00000UL }).__d));
};
-------------------------------------------------
Surprisingly, if report() is a global function, then the code compiles fine.
Certainly qualifies as a mainline regression.
W.