[Bug c++/49045] New: [C++0x] unexpected "different exception specifier" error with noexcept
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Wed May 18 15:58:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49045
Summary: [C++0x] unexpected "different exception specifier"
error with noexcept
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: paolo.carlini@oracle.com
Hi. I'm seeing an error for this snippet which I cannot understand:
template<typename _Tp>
void
swap(_Tp&, _Tp&);
template<typename _Tp, __SIZE_TYPE__ _Nm>
void
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
noexcept(noexcept(swap(*__a, *__b)));
template<typename _Tp, __SIZE_TYPE__ _Nm>
void
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
noexcept(noexcept(swap(*__a, *__b)))
{ }
More information about the Gcc-bugs
mailing list