From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luben Tuikov To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c++/3101: ICE -- seg. fault compiling and encountering C::Angle(...) Date: Sat, 09 Jun 2001 22:16:00 -0000 Message-id: <20010610051601.3575.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00356.html List-Id: The following reply was made to PR c++/3101; it has been noted by GNATS. From: Luben Tuikov To: gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: c++/3101: ICE -- seg. fault compiling and encountering C::Angle(...) Date: Sat, 9 Jun 2001 22:11:26 -0700 (PDT) Ok, I figured it out: If a class' constructor uses default values for the parameters and then only few are set in an object definition -- then the compiler seg. faults! E.g: class A { public: A(int a=0, int b=0, int c=1) { ... } ... } class B { public: SomeMethod(A v = A(0,0)); } Oops -- seg fault at line containing SomeMethod(...)! This is the problem with c++/3101... Will this be fixed...? or already has been? Luben --- gcc-gnats@gcc.gnu.org wrote: > Thank you very much for your problem report. > It has the internal identification `c++/3101'. > The individual assigned to look at your > report is: unassigned. > > >Category: c++ > >Responsible: unassigned > >Synopsis: ICE -- seg. fault compiling and > encountering C::Angle(...) > >Arrival-Date: Sat Jun 09 15:36:00 PDT 2001 __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/