Commit 4c8a3a89 by Jason Merrill

new

From-SVN: r28279
parent 809a5db6
// Bug: g++ lies about DECL_CONTEXT, so the backend thinks B::f is not
// function-local.
// Contributed by Jason Merrill <jason@cygnus.com>
// excess errors test - XFAIL *-*-*
struct A {
virtual void f () = 0;
};
int main()
{
struct B : public A {
void f () { }
};
B b;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment