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

            Bug ID: 19545
           Summary: Missing devirtualization
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

In the following example clang produces non virtual calls in g, but not in h.

struct foo {
  virtual int f() {return 0;}
};
int g(foo x) {
  return x.f();
}
int h(foo x[2]) {
  return x[0].f();
}

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