[Bug c++/12167] [3.4 Regression] ICE on default argument of class member function if non-simple

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Thu Sep 4 14:49:00 GMT 2003


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.



More information about the Gcc-bugs mailing list