public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8205: using declaration & mulitiple inheritance
@ 2002-11-04 14:46 bangerth
  0 siblings, 0 replies; only message in thread
From: bangerth @ 2002-11-04 14:46 UTC (permalink / raw)
  To: chicares, gcc-bugs, gcc-prs, hou_zhenyu, nobody

Old Synopsis: using declaration doesn't work while mulitiple inheritance was used.
New Synopsis: using declaration & mulitiple inheritance

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Nov  4 14:46:16 2002
State-Changed-Why:
    Right, this is a regression in 3.2, as it compiled cleanly
    in 2.95.I thus set the priority to "high" and let others
    decide what to do with it.
    
    However, it turns out that this is fixed on the mainline
    again (or the problem was never introduced there). For 
    reference, I append the code in question below.
    
    Regards
      Wolfgang
    
    
    -------------------------
    class A { public: int i; };
    class B {};
    class E : A, B { public: using A::i; };
    
    int main() {
      E e;
      e.i; // "`A' is an inaccessible base of `E'"
    }
    ----------------------------------
    tmp/g> /home/bangerth/bin/gcc-3.2.1-pre/bin/c++ -c x.cc
    x.cc: In function `int main()':
    x.cc:7: `A' is an inaccessible base of `E'
    
    tmp/g> /home/bangerth/bin/gcc-3.3x-pre/bin/c++ -c x.cc

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-04 22:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-04 14:46 c++/8205: using declaration & mulitiple inheritance bangerth

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).