c++/8385: ICE in mangle.c:write_type with typeof(...) as template arg
bangerth@ticam.utexas.edu
bangerth@ticam.utexas.edu
Mon Oct 28 11:46:00 GMT 2002
>Number: 8385
>Category: c++
>Synopsis: ICE in mangle.c:write_type with typeof(...) as template arg
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 28 11:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Wolfgang Bangerth
>Release: unknown-1.0
>Organization:
>Environment:
gcc 3.3 CVS and 3.2.1 branch
>Description:
This triggers an ICE in write_type in cp/mangle.c, when using -g:
--------------------------------------
int foo;
template <class T> struct Base {};
template<class T>
struct Derived : public Base<typeof(foo)> {};
---------------------------------------
The message is:
------------------------------------------
tmp/g> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -g x.cc
x.cc: In instantiation of `Base<__typeof (foo)>':
x.cc:6: instantiated from here
x.cc:3: internal compiler error: in write_type, at cp/mangle.c:1492
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list