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]

Re: 971127 internal compiler error


Hope this simple testcase helps:


tom@hermes:/home/tom > cat bug2.cc

class   x   
{
public:
        x   (int init_buffer_size=0);
        ~x   ();
};

 
 
class   xSequence   
{
public:
        xSequence   ();
        ~xSequence   ();
        x   Get(int index)const;
};



class   foo    
{
public:
        bool bar(const x   & name, x    & value);

};



bool foo::bar(const x  & name, x    & value)
{
        bool result = false;

        xSequence    seq;
        x    v1, v2;
        if(result ? bar(seq.Get(1),v2) : bar(seq.Get(2),v2))

                ;

        return result;
}

tom@hermes:/home/tom > g++ -fsjlj-exceptions bug2.cc
bug2.cc: In method `bool foo::bar(const class x &, class x &)':
bug2.cc:41: Internal compiler error.
bug2.cc:41: Please submit a full bug report to `egcs-bugs@cygnus.com'.
tom@hermes:/home/tom >

-- 
Thomas Weise, http://www.inf.tu-dresden.de/~tw4
Dresden University of Technology, Department of Computer Science


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