https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70790
Bug ID: 70790
Summary: Can't mangle noexcept expressions
Product: gcc
Version: 5.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: eric.niebler at gmail dot com
Target Milestone: ---
#include <utility>
template<class T>
void foo(T, typename std::enable_if<noexcept(T(std::declval<T>())), int>::type)
{
}
int main() {
foo(0,0);
}
Results in:
Test.cpp: In instantiation of ‘void foo(T, typename std::enable_if<noexcept
((T)(declval<T>())), int>::type) [with T = int; typename
std::enable_if<noexcept ((T)(declval<T>())), int>::type = int]’:
Test.cpp:19:6: sorry, unimplemented: mangling noexcept_expr
void foo(T, typename std::enable_if<noexcept(T(std::declval<T>())),
int>::type)
^