Skip to content

[clang] template specialization for integer value matches wrong type #124186

@vasama

Description

@vasama

https://godbolt.org/z/MnqssGY1b

template<typename T, auto V>
struct S
{
    static constexpr bool value = true;
};

template<typename T>
struct S<T, 0>
{
    static constexpr bool value = false;
};

static_assert(S<void, 0L>::value);

Metadata

Metadata

Assignees

Labels

clang:frontendLanguage frontend issues, e.g. anything involving "Sema"confirmedVerified by a second party

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions