Issue |
110873
|
Summary |
[Clang] Accepts invalid `constexpr` in explicit instantiation of variable template
|
Labels |
clang
|
Assignees |
|
Reporter |
MagentaTreehouse
|
In the following code, the `constexpr` specifier should not be allowed in the explicit instantiation. It is rejected by GCC, but accepted by Clang.
```c++
template <class>
inline constexpr int i{};
template constexpr int i<int>;
```
See Compiler Explorer: https://godbolt.org/z/jzvY3Mqxc
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs