-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Description
| Bugzilla Link | 20222 |
| Version | trunk |
| OS | All |
| CC | @DougGregor |
Extended Description
The following snippet results in a static_assert failure, I believe the overload resolution should be ambiguous instead:
template <int I>
struct int_ {};
template <int I>
void foo(int_<I>){ static_assert(I != 1, ""); }
struct bar : int_<0>, int_<1> {};
int main() {
foo(bar{});
}Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"