https://bugs.llvm.org/show_bug.cgi?id=43741
Bug ID: 43741
Summary: Regression: -Wmissing-variable-declarations for
variable template specialization
Product: new-bugs
Version: 9.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedb...@nondot.org
Reporter: andreas.z...@ableton.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org
The following code triggers -Wmissing-variable-declarations in clang 9:
template<typename T>
constexpr bool is_int = false;
template<>
constexpr bool is_int<int> = true;
It compiles without warnings with clang 8.
See also https://godbolt.org/z/Y_eCbP
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs