-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Closed as not planned
Closed as not planned
Copy link
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++11clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"invalidResolved as invalid, i.e. not a bugResolved as invalid, i.e. not a bug
Description
| Bugzilla Link | 25573 |
| Version | 3.7 |
| OS | Linux |
| Reporter | LLVM Bugzilla Contributor |
| CC | @DougGregor,@zygoloid |
Extended Description
// The following code compiles in gcc (http://goo.gl/gFGc9K), but not clang (http://goo.gl/woxdi1).
#include <type_traits>
template<class T> struct Foo { Foo(T = nullptr) {} };
using U = std::is_constructible<Foo<int>>;
bool b = U::value; // If we remove this line, it compiles in both gcc and clang.
// However the value of `b` is true, which is counterintuitive.
int main() {}Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++11clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"invalidResolved as invalid, i.e. not a bugResolved as invalid, i.e. not a bug