This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bug report for egcs-971008 & egcs-970929
- To: dcb at pncl dot co dot uk, egcs-bugs at cygnus dot com
- Subject: bug report for egcs-971008 & egcs-970929
- From: davidb at msi-uk dot com (David Binderman)
- Date: Wed, 15 Oct 1997 11:51:41 +0100
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