This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/8633: g++ doesn't resolve typedefs of templated classes properly
- From: struppi at acm dot org
- To: gcc-gnats at gcc dot gnu dot org
- Date: 19 Nov 2002 08:22:03 -0000
- Subject: c++/8633: g++ doesn't resolve typedefs of templated classes properly
- Reply-to: struppi at acm dot org
>Number: 8633
>Category: c++
>Synopsis: g++ doesn't resolve typedefs of templated classes properly
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 19 00:26:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: struppi@acm.org
>Release: unknown-1.0
>Organization:
>Environment:
Debian 3.0 woody GNU/Linux, g++-3.2
>Description:
g++ doesn't recognize ios as a virtual base class. The problem is the same if I include <ios> instead of the typedef at the top, but the preprocessed file would be much larger. :-)
The problem goes away, if I substitute the initializer std::ios by basic_ios<char> in the c'tor of Derived.
>How-To-Repeat:
g++-3.2 -Wall -ansi -pedantic -E v.cc > v.E
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="v.E"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="v.E"
IyAxICJ2LmNjIgojIDEgIjxidWlsdC1pbj4iCiMgMSAiPGNvbW1hbmQgbGluZT4iCiMgMSAidi5j
YyIKCm5hbWVzcGFjZSBzdGQgewp0ZW1wbGF0ZTxjbGFzcyBUPgpjbGFzcyBiYXNpY19pb3Mgewp9
OwoKdHlwZWRlZiBiYXNpY19pb3M8Y2hhcj4gaW9zOwp9CgpzdHJ1Y3QgQmFzZSA6IHZpcnR1YWwg
cHVibGljIHN0ZDo6aW9zIHsKICBCYXNlKCkgOiBzdGQ6OmlvcygpIHt9Cn07CgpzdHJ1Y3QgRGVy
aXZlZCA6IHB1YmxpYyBCYXNlIHsKICBEZXJpdmVkKCkgOiBzdGQ6OmlvcygpLCBCYXNlKCkge30K
fTsK