public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7584: Erroneous ambiguous base error on using declaration
@ 2002-08-13  7:46 timb
  0 siblings, 0 replies; 4+ messages in thread
From: timb @ 2002-08-13  7:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7584
>Category:       c++
>Synopsis:       Erroneous ambiguous base error on using declaration
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 13 07:06:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     timb@bluearc.com
>Release:        3.1.1  (powerpc-eabi)
>Organization:
>Environment:
Debian GNU/Linux x86 unstable
>Description:
When compiling the code below, gcc reports "`A' is an ambiguous base of `C'" for each using declaration, and goes on to complain of "C::T x;" that "`typedef int A::T' is inaccessible". (Incidentally, the ambiguous base messages give the line number of the opening brace of the class definition.) There is no ambiguity for either using declaration, since A is a virtual base class. In the second, there would be no ambiguity even if A were a non-virtual base, since nested types can always be referred to unambiguously (para. 10.2/5).
>How-To-Repeat:
Compile the following with gcc -c

class A
{
public:
    typedef int T;
    int a;
};

class B : virtual private A
{
};

class C : virtual private A, public B
{
public:
    using A::a;
    using A::T;
};

C::T x;
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: c++/7584: Erroneous ambiguous base error on using declaration
@ 2002-10-17 15:38 mmitchel
  0 siblings, 0 replies; 4+ messages in thread
From: mmitchel @ 2002-10-17 15:38 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mmitchel, timb

Synopsis: Erroneous ambiguous base error on using declaration

State-Changed-From-To: analyzed->closed
State-Changed-By: mmitchel
State-Changed-When: Thu Oct 17 15:38:17 2002
State-Changed-Why:
    Fixed in GCC 3.2.1.

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


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

* Re: c++/7584: Erroneous ambiguous base error on using declaration
@ 2002-10-17 13:40 mmitchel
  0 siblings, 0 replies; 4+ messages in thread
From: mmitchel @ 2002-10-17 13:40 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mmitchel, nobody, timb

Synopsis: Erroneous ambiguous base error on using declaration

Responsible-Changed-From-To: unassigned->mmitchel
Responsible-Changed-By: mmitchel
Responsible-Changed-When: Thu Oct 17 13:40:54 2002
Responsible-Changed-Why:
    Working on a fix.

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


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

* Re: c++/7584: Erroneous ambiguous base error on using declaration
@ 2002-09-13 16:03 nathan
  0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2002-09-13 16:03 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, timb

Synopsis: Erroneous ambiguous base error on using declaration

State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Fri Sep 13 16:03:31 2002
State-Changed-Why:
    confirmed as a regression

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


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

end of thread, other threads:[~2002-10-17 22:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-13  7:46 c++/7584: Erroneous ambiguous base error on using declaration timb
2002-09-13 16:03 nathan
2002-10-17 13:40 mmitchel
2002-10-17 15:38 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).