Fix nothrow trait with multiple default constructors
Check all default ctors, not just the first one we see. This brings __has_nothrow_constructor() in line with the other unary type traits. A C++ class can have multiple default constructors but clang was only checking the first one written, presumably due to ambiguity in the GNU specification. MSVC has the same bug, while g++ has the correct implementation which we now match. llvm-svn: 199618
Loading
Please register or sign in to comment