[llvm-bugs] [Bug 38503] New: [5/6/7] -Wunused-const-variable false positive for variable template

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 9 07:09:05 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38503

            Bug ID: 38503
           Summary: [5/6/7] -Wunused-const-variable false positive for
                    variable template
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++14
          Assignee: unassignedclangbugs at nondot.org
          Reporter: Casey at Carter.net
                CC: llvm-bugs at lists.llvm.org

Every clang since 5.0 emits -Wunused-const-variable for a TU that contains
only:

  template <class> constexpr bool always_false = false;

Note that there are no variables here, only a variable template.

-- 
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/20180809/e42e27c3/attachment.html>


More information about the llvm-bugs mailing list