public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8633: [3.3 regression] typedefs as base classes
@ 2002-11-25 15:36 bangerth
  0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2002-11-25 15:36 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, struppi

Old Synopsis: g++ doesn't resolve typedefs of templated classes properly
New Synopsis: [3.3 regression] typedefs as base classes

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Tue Nov 19 07:13:10 2002
State-Changed-Why:
    Confirmed. This is a reduced testcase:
    -----------------------
    namespace NS {
      class X {};
      typedef X Y;
    }
    
    struct Base : virtual public NS::Y {
        Base() : NS::Y() {}
    };
    -------------------------
    The messages are
    tmp/g> /home/bangerth/bin/gcc-3.3x-pre/bin/c++ x.cc
    x.cc: In constructor `Base::Base()':
    x.cc:7: error: type `NS::Y' is not a direct or virtual base of `Base'
    
    I am unsure whether the code is illegal: 10.1 states that
    the names of base classes shall be class names, so a
    typedef may not qualify. However, gcc should then tell us
    so at the point of the base class list, not in the
    constructor. What is also suspicious is that the error
    goes away if one makes the base class non-virtual or moves
    X and Y into the global namespace. Something's wrong here.
    
    I can compile the testcase above with 2.95 and 3.2.1pre, so
    assuming it is legal, it is a regression. I thus raise its
    priority. If it is not legal, someone will give an explanation
    of this inconsistent behavior.

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/8633: [3.3 regression] typedefs as base classes
@ 2002-12-01 12:33 mmitchel
  0 siblings, 0 replies; 3+ messages in thread
From: mmitchel @ 2002-12-01 12:33 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mmitchel, struppi

Synopsis: [3.3 regression] typedefs as base classes

State-Changed-From-To: analyzed->closed
State-Changed-By: mmitchel
State-Changed-When: Sun Dec  1 12:33:23 2002
State-Changed-Why:
    Fixed in G++ 3.3

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/8633: [3.3 regression] typedefs as base classes
@ 2002-12-01 10:54 mmitchel
  0 siblings, 0 replies; 3+ messages in thread
From: mmitchel @ 2002-12-01 10:54 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mmitchel, nobody, struppi

Synopsis: [3.3 regression] typedefs as base classes

Responsible-Changed-From-To: unassigned->mmitchel
Responsible-Changed-By: mmitchel
Responsible-Changed-When: Sun Dec  1 10:54:29 2002
Responsible-Changed-Why:
    Working on a fix.

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-01 20:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-25 15:36 c++/8633: [3.3 regression] typedefs as base classes bangerth
2002-12-01 10:54 mmitchel
2002-12-01 12:33 mmitchel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).