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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to