This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21687] New: [4.0/4.1 Regression] ICE on valid code
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 May 2005 22:01:19 -0000
- Subject: [Bug c++/21687] New: [4.0/4.1 Regression] ICE on valid code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I know this goes against all the rules for filing bugs but when I supply -save-temps, I don't get an ICE.
The code is the code from PR 21685 with one exception, the following 2 lines are commented out (this
makes this code valid):
const value_iterator end = union_f(sets.begin(), sets.end(),
output.begin());
It fails with "4.0.0 20050113"
The ICE is:
t.cc: In member function 'void OKlib::SetAlgorithms::Test_Union<Union>::perform_test_trivial()':
t.cc:94: internal compiler error: tree check: expected statement_list, have type_expr in
finish_compound_stmt, at cp/semantics.c:1113
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: [4.0/4.1 Regression] ICE on valid code
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-apple-darwin7.8.0
GCC host triplet: powerpc-apple-darwin7.8.0
GCC target triplet: powerpc-apple-darwin7.8.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21687