This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ICE #40 in trivial C++ code


On i686-pc-linux-gnu, using the STL-using program below, gcc (from
current CVS) gets an ICE.  I've tried simplifying the code to isolate
what in the return type causes problems, but have been unable to do so
(std::string does not cause the ICE, and I'm not familiar enough with
C++ or the STL to know why std::list might if std::string doesn't).

This is a much pared-down version of a bug I sent mail about last
week, but I'm unsure if I can pare it down any farther without doing
more digging than I have time for this week.

-- Michael

[poole@troilus ~/src/test]% g++ -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.96/specs
gcc version 2.96 20000724 (experimental)
[poole@troilus ~/src/test]% g++ test.cpp
test.cpp: In function `list<int, allocator<int> > fancy ()':
test.cpp:3: Internal error #40.
test.cpp:3: Internal compiler error in cplus_expand_expr, at 
../gcc/gcc/cp/expr.c:159
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
[poole@troilus ~/src/test]% cat test.cpp
#include <list>

std::list<int> fancy(void) return ls;
{
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]