This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Another ICE-on-leagal-code-miniature for CVS-g++-2.96 with -O2
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Another ICE-on-leagal-code-miniature for CVS-g++-2.96 with -O2
- From: "Alfred Minarik" <alfred dot minarik at lion dot cc>
- Date: Sat, 8 Apr 2000 13:18:33 +0200
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