GCC fails to compile the following snippet: template <int> struct ItT {}; template <typename> int f (); template <typename T> ItT<sizeof(f<T>())> g (); void h () { g<int>(); } It says: t.cpp:4: sorry, unimplemented: call_expr cannot be mangled due to a defect in the C++ ABI Clearly this bug is known (by whoever wrote that error message), but currently there is no entry for it in GCC Bugzilla so that's why I'm reporting it. I'm using GCC version 3.4 20030723
There is a bug, PR 6424. Closing as a dup of bug 6424. *** This bug has been marked as a duplicate of 6424 ***