Internal compiler error

Stuart Whitman stu@s3i.com
Tue Aug 25 16:12:00 GMT 1998


version:	gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
command:	g++ -c
uname -a:	SunOS blackbird 5.5.1 Generic sun4m sparc
		SUNW,SPARCstation-20
configure:	--prefix=/export/home0/tmp/egcs
source mods:	NONE
behavior:	foo.cc: In function `void interaction(class EnumClass)':
		foo.cc:27: Internal compiler error.
		foo.cc:27: Please submit a full bug report to 
`egcs-bugs@cygnus.com'.

offending code:

class Trans {
public:  
        Trans  operator<< (int i);
        Trans  operator<< (const char * s);
};

class Switch {
public:
        Trans begin_data ();
};

class EnumClass 
{
public:
        operator int() const;
};

Trans operator << (Trans output, EnumClass ec);

        void
interaction(EnumClass enumeration)
{
        Switch  trno_DBS_Interaction ;

        trno_DBS_Interaction  .begin_data () 
        << enumeration
        << "\n";
}


------------------------------------------------------
Stuart Whitman        System Simulation Solutions, Inc
     703 684 8268     1700 Diagonal Road, STE 310
Fax: 703 684 8272     Alexandria, VA 22314





More information about the Gcc-bugs mailing list