This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]