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: unassignedclangb...@nondot.org
Reporter: bigchees...@gmail.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs