Internal compiler error in egcs release 1.1.2
Michael S. Tsirkin
mtsirkin@iil.intel.com
Thu Jun 10 08:03:00 GMT 1999
Hello!
Here is a very simple file that will cause an internal compiler error
when compiled with egcs 1.1.2 :
Pls mail any questions, etc to mailto:mtsirkin@iil.intel.com
------------------------
namespace stl {
template <bool threads, int inst>
class kukuriku {
public :
union _Obj {
union _Obj* free_list_link;
char client_data[1];
};
} ;
}
template <bool threads, int inst>
class kukuriku {
private :
union obj {
union obj * free_list_link;
char client_data[1];
};
} ;
typedef kukuriku< false , 0> foo;
using namespace std;
typedef stl::kukuriku<false,0> uhj;
uhj vhfjsd; // line 34
------------------------
If I change _Obj here to something else, it will compile!
g++ version etc:
------------------------
g++ -v --save-temps tryme1.cpp
Reading specs from
/afs/iil/nike/data/fcde/egcs/hp9000_10.20/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
/afs/iil/nike/data/fcde/egcs/hp9000_10.20/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.66/cpp
-lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus
-D__GNUC_MINOR__=91 -Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux
-Dunix -D__hppa__ -D__hp9000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__
-D__hpux__ -D__unix__ -D__hppa -D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux
-D__unix -Asystem(unix) -Asystem(hpux) -Acpu(hppa) -Amachine(hppa)
-D__EXCEPTIONS -D__hp9000s700 -D_PA_RISC1_1 -D_HPUX_SOURCE -D_HIUX_SOURCE
tryme1.cpp tryme1.ii
GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (hppa)
#include "..." search starts here:
#include <...> search starts here:
/afs/iil/nike/data/fcde/egcs/hp9000_10.20/include/g++
/usr/local/include
/afs/iil/nike/data/fcde/egcs/hp9000_10.20/hppa1.1-hp-hpux10.20/include
/afs/iil/nike/data/fcde/egcs/hp9000_10.20/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.66/include
/usr/include
End of search list.
/afs/iil/nike/data/fcde/egcs/hp9000_10.20/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.66/cc1plus
tryme1.ii -quiet -dumpbase tryme1.cc -version -o tryme1.s
GNU C++ version egcs-2.91.66 19990314 (egcs-1.1.2 release)
(hppa1.1-hp-hpux10.20) compiled by GNU C version egcs-2.91.66 19990314
(egcs-1.1.2 release).
tryme1.cpp: In instantiation of `::stl::::stl::kukuriku<false,0>':
tryme1.cpp:34: instantiated from here
tryme1.cpp:34: Internal compiler error 42.
tryme1.cpp:34: Please submit a full bug report to
`egcs-bugs@egcs.cygnus.com'.
tryme1.cpp:34: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for
details.
--
This message content is not part of Intel's views or affairs
Michael S. Tsirkin, Hanita 63/5, Haifa,Israel;
Home:+972-4-8322219; Work:+972-4-8655658; Fax: +972-4-8656338
mailto:mtsirkin@usa.net ; http://www.toptown.com/hp/mtsirkin/ ;
> Four things are to be strengthened: Torah,and good deeds,
> prayer and one's good manners (Berachoth)
More information about the Gcc-bugs
mailing list