public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/4911: private base class constructor inaccessible in unusual class hierarchy
@ 2001-11-14 10:56 post
0 siblings, 0 replies; 2+ messages in thread
From: post @ 2001-11-14 10:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 4911
>Category: c++
>Synopsis: private base class constructor inaccessible in unusual class hierarchy
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 19 15:56:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Volker Wysk
>Release: gcc 3.0.2, gcc 2.95
>Organization:
>Environment:
Debian GNU/Linux 2.2r2, i386
>Description:
The attached program fails to compile.
/tmp $ gcc-3.0 x.C
x.C:10: warning: direct base `I' inaccessible in `C' due to ambiguity
x.C: In constructor `C::C()':
x.C:11: no matching function for call to `I::I()'
x.C:1: candidates are: I::I(const I&)
x.C:3: I::I(int)
I think both, the error and the warning, are wrong.
>How-To-Repeat:
gcc-3.0 x.C
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/msword; name="x.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="x.C"
c3RydWN0IEkgewogIGludCBpOwogIEkoaW50IGopIHsgaSA9IGo7IH07Cn07CgpzdHJ1Y3QgQiA6
IHByaXZhdGUgSSB7CiAgQihpbnQgeCkgOiBJKHgpIHt9Owp9OwoKc3RydWN0IEMgOiBwdWJsaWMg
QiwgcHJpdmF0ZSBJIHsKICBDKCkgOiBCKDEpLCBJKDIpIHt9Owp9Owo=
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/4911: private base class constructor inaccessible in unusual class hierarchy
@ 2001-12-15 11:27 nathan
0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2001-12-15 11:27 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, post
Synopsis: private base class constructor inaccessible in unusual class hierarchy
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Sat Dec 15 11:27:39 2001
State-Changed-Why:
no, I is an ambiguous base, and so the direct base is
inaccessible [10.2]/3
The bug about no I() constructor has been fixed on the
mainline
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4911
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-12-15 19:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-14 10:56 c++/4911: private base class constructor inaccessible in unusual class hierarchy post
2001-12-15 11:27 nathan
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).