bug report for egcs-971008 & egcs-970929

David Binderman davidb@msi-uk.com
Wed Oct 15 03:53:00 GMT 1997


Hello there,

Given the following code,

struct smallCell;

struct Other
{
	int a;
	int b;
	static smallCell rs;
	void f( const Other & ro);
};

struct smallCell
{
    unsigned short vSite        : 13;   
    unsigned short vSector      :  3;  
};

void 
Other::f( const Other & ro)
{
	int j = rs.vSite;
}

then egcs-971008 on Dec Alpha says

hw62.cc: In method `void Other::f(const struct Other &)':
hw62.cc:21: Error: Internal compiler error.
hw62.cc:21: Error: Please submit a full bug report to `egcs-bugs@cygnus.com'.

and egcs-970929 on Sun Solaris says

hw62.cc: In method `void Other::f(const struct Other &)':
hw62.cc:21: Error: Internal compiler error.
hw62.cc:21: Error: Please submit a full bug report to `egcs-bugs@cygnus.com'.

since around line 1624 of gcc/expmed.c, there is a divide by zero operation.

Other compilers accept this code.

Regards

David C Binderman MSc BSc (Hons)		+44 171 971 8814
contracting at Mobile Systems International in the Docklands



More information about the Gcc-bugs mailing list