This is the mail archive of the gcc-bugs@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++/9851: [3.4 regression] confusing error message when using '.', not '->'


Old Synopsis: confusing error message when using '.', not '->'
New Synopsis: [3.4 regression] confusing error message when using '.', not '->'

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Feb 26 17:14:33 2003
State-Changed-Why:
    Confirmed. Not very helpful. For reference (so that one
    does not have to open the attachment): code is
    -----------------------
    struct goo {
      void do_nothing () {};
    };
    
    struct foo {
      foo () { g_.do_nothing (); }
      goo * g_;
    };
    ---------------------
    and we get
    
    g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
    x.cc: In constructor `foo::foo()':
    x.cc:6: error: expected type-name
    x.cc:6: error: expected `::'
    x.cc:6: error: expected `~'
    x.cc:6: error: expected identifier
    
    This can be considered a regression, since previously
    we got this:
    g/x> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c x.cc
    x.cc: In constructor `foo::foo()':
    x.cc:6: error: request for member `do_nothing' in `this->foo::g_', which is of
       non-aggregate type `goo*'

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9851


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