------- Comment #1 from andrew dot stubbs at st dot com 2007-05-25 11:21 ------- This problem may also be observed in explicit instantiation:
template <class T> void foo (T) throw (int) { } template void foo (short) throw (short); There are also similar issues with declarations of pointers to functions, and pointers to member functions: extern void (*foo)() throw (int); extern void (*foo)() throw (short); class C; extern void (C::*bar)() throw (int); extern void (C::*bar)() throw (short); All these examples are silently accepted. The function pointer issues may be related to PR12255 Perhaps somebody who can should change the title of this bug to include function pointers. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32081