template <typename T> struct S { T t; }; template <typename I, typename J> void f (S<__typeof__ (I() + J())>) {} template void f<int, long>(S<__typeof__ (int() + long())>); causes ICE in write_type.
I can confirm this also happens on the mainline (20030718).
Subject: Re: New: cp/mangle.c doesn't handle __typeof__ "jakub at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes: | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11578 | | Summary: cp/mangle.c doesn't handle __typeof__ I think there is already a PR for this issue. (Same for __alignof__). It should follow the same line of treatment as we got for __imag__/__real__ recently. Will look into that. -- Gaby
A dup of bug 11078. *** This bug has been marked as a duplicate of 11078 ***