[LLVMbugs] [Bug 15753] New: wrong handling of linkage for explicit specializations of static function templates

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 15 13:17:53 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15753

            Bug ID: 15753
           Summary: wrong handling of linkage for explicit specializations
                    of static function templates
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: matthewbg at google.com
                CC: llvmbugs at cs.uiuc.edu, rafael.espindola at gmail.com
    Classification: Unclassified

$ cat ~/test.cc
template <typename T> static int Foo(T t);
template <typename T> int Foo(T t) {
  return t;
}
template<> int Foo<int>(int i) {
  return i;
}
$ clang -o /tmp/test.o -c ~/test.cc && nm /tmp/test.o
0000000000000000 T _ZL3FooIiEiT_

At r178511, we didn't emit anything for that input; at r179138, we produce the
above output.

-- 
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/20130415/47e23446/attachment.html>


More information about the llvm-bugs mailing list