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]

bug report for egcs-971008 & egcs-970929


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


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