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]

Internal compiler error



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




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