-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Clang 20 regression: conflicting deduction 'type-parameter-0-0' against 'long' for parameter #138078
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@llvm/issue-subscribers-clang-frontend Author: Jeremy Rifkin (jeremy-rifkin)
```cpp
#include <type_traits>
template <typename Integer, Integer C, unsigned I, template <typename, Integer, unsigned> class Trait, typename = void> template <typename Integer, Integer C, unsigned I> template <typename Integer, Integer C> template <typename Integer, unsigned I> Baz<long, 20> x;
|
This is equivalent to / duplicate of #130778 Same explanations there apply. To make this code compatible with all compilers, make this change to the definition of Foo: template <typename Integer, Integer C, unsigned I, template <typename T, T, unsigned> class Trait, typename = void>
class Foo : public std::integral_constant<bool, true> {}; |
This ostensibly valid code compiles fine on gcc, msvc, and clang 19 but fails on clang 20 with the following error:
https://godbolt.org/z/vjYsWPq3q
The text was updated successfully, but these errors were encountered: