Open 3a3ee7bd-941c-4a35-8f11-f0c2bc84adbe opened 5 years ago
mentioned in issue llvm/llvm-bugzilla-archive#49998
mentioned in issue llvm/llvm-bugzilla-archive#43556
Looks like this is: https://reviews.llvm.org/D65022
This fix has not been merged until now.
This bug also leads to compiler crashes.
It seems still no fix has landed in trunk and clang 9 release branch.
This is bad and inhibits that we currently cannot use clang 9 for the basicpp17 library now.
Bug llvm/llvm-bugzilla-archive#43556 has been marked as a duplicate of this bug.
Looks like this is: https://reviews.llvm.org/D65022
Extended Description
The following code compiled on clang 8 and is now wrong in clang 9.
See: https://godbolt.org/z/WdLl4c
template
struct Template {
template
static constexpr auto type_v = 0;
};
using T = Template;
static_assert(T::type_v == 0);
error: invalid operands to binary expression ('const auto' and 'int')
It seems the 'const auto' was never resolved to the real type.