[Bug c++/32081] Conflicting exception specifications not rejected in template specialization
andrew dot stubbs at st dot com
gcc-bugzilla@gcc.gnu.org
Fri May 25 10:21:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list