-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Closed
Labels
clang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Description
The code (Godbolt)
#include <__type_traits/integral_constant.h>
template <class T>
struct rank : std::integral_constant<int, __array_rank(T)> {};
template <class T>
void test_rank() {
static_assert(rank<T>::value == 0);
}
void func() {
test_rank<void>();
}generates func(), but doesn't generate test_rank<void>().
Metadata
Metadata
Assignees
Labels
clang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"