Bug 14691 - ICE in write_type at cp/mangle.c when using typeof
Summary: ICE in write_type at cp/mangle.c when using typeof
Status: RESOLVED DUPLICATE of bug 13740
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.3.4
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code, monitored
Depends on:
Blocks: 12604
  Show dependency treegraph
 
Reported: 2004-03-23 12:43 UTC by Jens Maurer
Modified: 2004-10-30 21:11 UTC (History)
2 users (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail: 2.95.3 3.2.3 3.3.4 3.4.0 4.0.0
Last reconfirmed: 2004-06-25 23:19:21


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Maurer 2004-03-23 12:43:33 UTC
This short program fails with
gcc version 3.3
gcc version 3.5.0 20040317 (experimental)

(Idea for test program by John Spicer, Edison Design Group,
during WG21 meeting.)

The error message (with a slight variation in the line number) is:

typeof.cc: In function `int main()':
typeof.cc:11: internal compiler error: in write_type, at cp/mangle.c:1491
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


template<class T> int f(T) { };

template<class T>
typeof(f<T*>(0)) g(T x) { }

struct X { };

int main()
{
  g(X());
}
Comment 1 Wolfgang Bangerth 2004-03-23 14:04:58 UTC
Confirmed. This never worked. (Sigh: one more in the list of about 
a dozen ICEs we have with typeof...) 
 
W. 
Comment 2 Jens Maurer 2004-07-13 19:10:07 UTC
This appears to be a duplicate of bug 13740, sorry.


*** This bug has been marked as a duplicate of 13740 ***