Bug 3330

Summary: ICE in g++
Product: Sisyphus Reporter: Alexey Voinov <voins>
Component: gcc3.2-c++Assignee: Dmitry V. Levin <ldv>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P2    
Version: unstable   
Hardware: all   
OS: Linux   

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