c++/9487: [3.4 regression] ICE in expected build_over_call, at cp/call.c:4463
bangerth@ticam.utexas.edu
bangerth@ticam.utexas.edu
Tue Jan 28 20:20:00 GMT 2003
>Number: 9487
>Category: c++
>Synopsis: [3.4 regression] ICE in expected build_over_call, at cp/call.c:4463
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Tue Jan 28 19:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Wolfgang Bangerth
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
This code
---------------------
template <class T> struct X {
template <class U> void foo();
};
template <class T>
void bar() {
X<double> x;
x.template foo<T>();
}
template void bar<int>();
------------------------
(extracted from PR 9486) now ICEs:
g/a> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c b.c
b.c: In function `void bar() [with T = int]':
b.c:10: instantiated from here
b.c:8: internal compiler error: tree check: expected function_decl, have
template_decl in build_over_call, at cp/call.c:4463
Please submit a full bug report,
It works on the 3.3 branch and in earlier releases.
W.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list