Another ICE-on-leagal-code-miniature for CVS-g++-2.96 with -O2
Alfred Minarik
alfred.minarik@lion.cc
Sat Apr 8 04:13:00 GMT 2000
As the subject tells:
Verified with Marks over the net compile.
Linux pc 2.2.13 #1 Fre Mär 3 18:05:52 MET 2000 i686 unknown
i686-pc-linux-gnu
> g++ -v
Reading specs from
/home/am/gcc/egcs_current/usr/lib/gcc-lib/i686-pc-linux-gnu/2.96/specs
gcc version 2.96 20000406 (experimental)
> g++ -O2 ice.cpp
ice.cpp: In method `void module::send (const string &)':
ice.cpp:15: Internal compiler error.
ice.cpp:15: Please submit a full bug report.
ice.cpp:15: See <URL: http://www.gnu.org/software/gcc/bugs.html > for
ice.cpp:15: instructions.
------
struct string
{
string(const char* str);
~string();
};
struct module
{
void send(const string& str="");
};
void module::send(const string& str)
{
send();
}
------
[with some additional lines this makes much more sense...]
Alfred
More information about the Gcc-bugs
mailing list