Bug 3330 - ICE in g++
Summary: ICE in g++
Alias: None
Product: Sisyphus
Classification: Development
Component: gcc3.2-c++ (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
Depends on:
Reported: 2003-11-29 15:01 MSK by Alexey Voinov
Modified: 2006-03-26 22:14 MSD (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Voinov 2003-11-29 15:01:04 MSK
$ cat >test.cc
template <typename A> A f(A param) { return smth; }
struct smth{};
void g() { f(smth()); }

$ g++ test.cc
test.cc: In function `A f(A) [with A = smth]':
test.cc:5:   instantiated from here
test.cc:1: Internal compiler error in c_expand_expr, at c-common.c:3714
Comment 1 Alexey Voinov 2003-12-30 14:36:19 MSK
$ g++-3.3 test.cc
test.cc: In function `A f(A) [with A = smth]':
test.cc:1: internal compiler error: in c_expand_expr, at c-common.c:4370
Comment 2 Alexey Voinov 2005-01-11 18:34:13 MSK
fixed in gcc3.4