This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/2013: g++ 2.96: typedefs + namespaces + inheritance == problem
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2013: g++ 2.96: typedefs + namespaces + inheritance == problem
- From: fatal at ee dot oulu dot fi
- Date: 17 Feb 2001 19:55:43 -0000
- Reply-To: fatal at ee dot oulu dot fi
>Number: 2013
>Category: c++
>Synopsis: g++ 2.96: typedefs + namespaces + inheritance == problem
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Sat Feb 17 11:56:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Jukka Honkela
>Release: gcc version 2.96 20000731 (Red Hat Linux 7.0)
>Organization:
>Environment:
redhat 7.0, i386, gcc/g++ from the latest
rawhide (gcc-2.96-74.i386.rpm)
>Description:
g++ fails to see relation with typedefed types
of classes thru inheritance when multiple namespaces
are being used. See attached sourcecode for example
of failing code. The problem was found while trying
to find why TAO (www.theaceorb.com) doesn't compile
with g++ 2.96.
While compiling the attached sourcecode, the following
error should occur:
failed-constructor.cc: In method `TEST2::C::C (int, int)':
failed-constructor.cc:22: type `ABC' is not an immediate or virtual
basetype for `TEST2::C'
>How-To-Repeat:
g++ -c namespace-typedef-problem.cc
>Fix:
None that I would know of
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="namespace-typedef-problem.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="namespace-typedef-problem.cc"
bmFtZXNwYWNlIFRFU1QgewoKCWNsYXNzIEEgewoJCWludCBfYSwgX2I7Cglwcm90ZWN0ZWQ6CgkJ
QShpbnQgYT0wLCBpbnQgYj0wKSA6IF9hKGEpLCBfYihiKSB7fSA7IAoJfTsKCQoJdHlwZWRlZiBB
IEFCQzsKCn0KCm5hbWVzcGFjZSBURVNUMiB7CgoJY2xhc3MgQiA6IHB1YmxpYyB2aXJ0dWFsIFRF
U1Q6OkFCQyB7Cglwcm90ZWN0ZWQ6CgkJQihpbnQgYT0wLCBpbnQgYj0wKSA6IFRFU1Q6OkFCQyhh
LGIpIHt9IDsKCX07CgkKCWNsYXNzIEMgOiBwdWJsaWMgdmlydHVhbCBCIHsKCXB1YmxpYzoKCQlD
KGludCBhLCBpbnQgYikgOiBURVNUOjpBQkMoYSxiKSB7fSA7Cgl9OwoJCQp9Cgo=