[llvm-bugs] [Bug 43741] New: Regression: -Wmissing-variable-declarations for variable template specialization

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 21 02:39:12 PDT 2019


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: unassignedbugs at nondot.org
          Reporter: andreas.zapf at ableton.com
                CC: htmldeveloper at gmail.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191021/6eebd3ec/attachment.html>


More information about the llvm-bugs mailing list