[llvm-bugs] [Bug 35456] New: Incorrect LLVM linkage for variable templates

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 28 23:41:00 PST 2017


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

            Bug ID: 35456
           Summary: Incorrect LLVM linkage for variable templates
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: bigcheesegs at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19482
  --> https://bugs.llvm.org/attachment.cgi?id=19482&action=edit
testcase. compile with -O0 or -O1 and you'll get a link error.

https://godbolt.org/g/49V2zT

Clang treats overload in source #1 as not a definition. Adding {} makes it
treat it as a definition.

gcc and msvc treat source #1 as a definition.

-- 
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/20171129/5af6892a/attachment.html>


More information about the llvm-bugs mailing list