internal error 980715

Amnon Dayan amnon_d@rad.co.il
Tue Dec 28 05:55:00 GMT 1999


Hi,

I'm using egcs-1.1.2 on Sun Solaris 2.5.1 and I'm getting an internal
compiler error 980715.
No options to teh compiler.
I simplified the code to do practically nothing but producing the error,
so do not try to make any sence of it, nor linking it. (you can't, no
object file..)
Here is the code:


=============================================================
#include <X11/Intrinsic.h>
#include <Xm/Text.h>
 
 
class Base
{
};
 
class Derived1 : public Base
{
public:
  static void ModifyVerifyCallback(Widget x, void *y, void *z)
    {
    }
};
 
class Derived2  : virtual public Derived1
{
};
 
class Derived3:   public Derived2
{
public:
 
 
  void Go()
    {  
      Widget w;
      XtAddCallback(w, XmNmodifyVerifyCallback, 
                    ModifyVerifyCallback, NULL);
    }
};
 
 
 
 
int main()
{
  Derived3 d;
  d.Go();
 
  return 1;
}
==============================================================

BTW,
I tried playing with the depth of the inheritace, level of inheritance
where the virtual inheritance was declared, location of the static
member function, - it does change things but I could not come up with
any consistent results, so it is better not to describe thos cases here.

No problem with gcc2.95.2.

compile command as requested by you:
g++ -v -save-temps egcs1.1.2.internal_error_980715.C
output:
Reading specs from
/export/home/amnon/EGCS_INSTALED/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)

/export/home/amnon/EGCS_INSTALED/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.66/cpp
-lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus
-D__GNUC_MINOR__=91 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__
-D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix
-Asystem(unix) -Asystem(svr4) -D__EXCEPTIONS -D__GCC_NEW_VARARGS__
-Acpu(sparc) -Amachine(sparc) egcs1.1.2.internal_error_980715.C
egcs1.1.2.internal_error_980715.ii
GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (sparc)
#include "..." search starts here:
#include <...> search starts here:
 /export/home/amnon/EGCS_INSTALED/include/g++
 /usr/local/include
 /export/home/amnon/EGCS_INSTALED/sparc-sun-solaris2.5.1/include

/export/home/amnon/EGCS_INSTALED/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.66/include
 /usr/include
End of search list.

/export/home/amnon/EGCS_INSTALED/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.66/cc1plus
egcs1.1.2.internal_error_980715.ii -quiet -dumpbase
egcs1.1.2.internal_error_980715.cc -version -o
egcs1.1.2.internal_error_980715.s
GNU C++ version egcs-2.91.66 19990314 (egcs-1.1.2 release)
(sparc-sun-solaris2.5.1) compiled by GNU C version egcs-2.91.66 19990314
(egcs-1.1.2 release).
egcs1.1.2.internal_error_980715.C: In method `void Derived3::Go()':
egcs1.1.2.internal_error_980715.C:32: Internal compiler error 980715.
egcs1.1.2.internal_error_980715.C:32: Please submit a full bug report to
`egcs-bugs@egcs.cygnus.com'.
egcs1.1.2.internal_error_980715.C:32: See
<URL: http://egcs.cygnus.com/faq.html#bugreport > for details.





Attached is the compressed .ii file.

Thanks, 
Amnon.



-- 
---------------------------------------------------------------------
Amnon Dayan                         Tel: +972 3 6459405
Software Engineer                   Fax: +972 3 6472675 
RAD Data Communications, Ltd.       email: amnon@rad.co.il
12 Hanechoshet St.                  http://www.rad.com
Tel Aviv 69710, Israel             
---------------------------------------------------------------------
     ************************************************************
      Words are like horses, taking us to places we cannot reach
     ************************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: egcs1.1.2.internal_error_980715.ii.gz
Type: application/x-gzip
Size: 24326 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19991228/a66798a8/attachment.bin>


More information about the Gcc-bugs mailing list