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

            Bug ID: 16059
           Summary: Incorrect linkage for testcase with local type in
                    inline function
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

A similar case was fixed in r181981, but we still get this case wrong:


template <typename T>
struct foo {
  template <T *P> static void f() {
  }
  static void *g() {
    return (void*)f<nullptr>;
  }
};

inline void *f() {
  struct S {
  };
  return foo<S>::g();
}

we need to produce linkonce_odr linkage for foo::f, but we produce internal.

-- 
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