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

           Summary: missed optimization for vtables
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


We produce a vtable for

template <typename T>
struct foo {
  virtual void bar() {}
};
template struct foo<int>;


so we don't have to produce one for

template <typename T>
struct foo {
  virtual void bar() {}
};
extern template struct foo<int>;
void zed() {
  foo<int> a;
  a.bar();
}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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