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]

c++/6356: GCC doesn't compile correct code.



>Number:         6356
>Category:       c++
>Synopsis:       GCC doesn't compile correct code.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 18 06:26:03 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Sergey Shandar
>Release:        2.95.3-5 (cygwin special)
>Organization:
>Environment:
Windows 2000
>Description:
using.cpp:18: no members matching `using C::Func' in `struct C'
>How-To-Repeat:
struct A
{
	void Func(void) { }
};

struct B
{
	void Func(void) { }
};

struct C: public B, public A
{
	using B::Func;
};

struct D: public C
{
	using C::Func;
};

int main(void)
{
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="using.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="using.cpp"

c3RydWN0IEENCnsNCgl2b2lkIEZ1bmModm9pZCkgeyB9DQp9Ow0KDQpzdHJ1Y3QgQg0Kew0KCXZv
aWQgRnVuYyh2b2lkKSB7IH0NCn07DQoNCnN0cnVjdCBDOiBwdWJsaWMgQiwgcHVibGljIEENCnsN
Cgl1c2luZyBCOjpGdW5jOw0KfTsNCg0Kc3RydWN0IEQ6IHB1YmxpYyBDDQp7DQoJdXNpbmcgQzo6
RnVuYzsNCn07DQoNCmludCBtYWluKHZvaWQpDQp7DQp9


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