This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ Patch / RFC] PR 46206


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]