[cfe-commits] r80064 - in /cfe/trunk: lib/CodeGen/CGCXX.cpp lib/CodeGen/CodeGenFunction.h test/CodeGenCXX/virt.cpp

Mike Stump mrs at apple.com
Wed Aug 26 13:51:39 PDT 2009


On Aug 25, 2009, at 7:58 PM, Douglas Gregor wrote:
> Checking that this is a reference to a virtual method is necessary,  
> but not sufficient. We also need to check that the name was not  
> qualified, e.g.,

Fixed by putting in the code, commented out, but with a FIXME.

struct test12_A {
   virtual void foo0() { }
   virtual void foo();
} *test12_pa;

void foo() {
   test12_pa->test12_A::foo();
}

-ast-prints as:

void foo() {
     test12_pa->foo();
}

:-(



More information about the cfe-commits mailing list