
Close https://github.com/llvm/llvm-project/issues/62174 And this was originally a try to close https://github.com/llvm/llvm-project/issues/62158. I don't feel this is the correct fix. I just think it is not bad as an ad-hoc patch. And let's discuss things in the higher-level in the above GitHub issue link. Reviewed By: erichkeane Differential Revision: https://reviews.llvm.org/D148506
17 lines
324 B
C++
17 lines
324 B
C++
// RUN: %clang_cc1 -std=c++20 %s -fsyntax-only -verify
|
|
// expected-no-diagnostics
|
|
namespace lib {
|
|
namespace impl {
|
|
template <class>
|
|
inline constexpr bool test = false;
|
|
}
|
|
using impl::test;
|
|
}
|
|
|
|
struct foo {};
|
|
|
|
template <>
|
|
inline constexpr bool lib::test<foo> = true;
|
|
|
|
static_assert(lib::test<foo>);
|