On 08/06/2013 05:26 AM, Paolo Carlini wrote:
That's strange. I would expect that to mean that we don't properly give an error for a Bar data member declared after the typedef.
You mean something like this? class Foo { int u, v, w;//, x; typedef struct Bar { } Bar; Bar bar; virtual void foo(void) { struct Bar bar; } };
I mean something like class Foo { int u, v, w;//, x; typedef struct Bar { } Bar; int Bar; virtual void foo(void) { struct Bar bar; } };