public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/7216: basic_iostream::traits_type is ambiguous issue
@ 2002-07-27 14:56 bkoz
0 siblings, 0 replies; 3+ messages in thread
From: bkoz @ 2002-07-27 14:56 UTC (permalink / raw)
To: bkoz, dens, gcc-bugs, gcc-prs
Synopsis: basic_iostream::traits_type is ambiguous issue
State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Sat Jul 27 14:56:55 2002
State-Changed-Why:
Fixed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7216
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libstdc++/7216: basic_iostream::traits_type is ambiguous issue
@ 2002-07-25 16:50 bkoz
0 siblings, 0 replies; 3+ messages in thread
From: bkoz @ 2002-07-25 16:50 UTC (permalink / raw)
To: bkoz, dens, gcc-bugs, gcc-prs, nobody
Synopsis: basic_iostream::traits_type is ambiguous issue
Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Thu Jul 25 16:50:13 2002
Responsible-Changed-Why:
Mine.
State-Changed-From-To: open->feedback
State-Changed-By: bkoz
State-Changed-When: Thu Jul 25 16:50:13 2002
State-Changed-Why:
Actually, DR 271 says that you have to add the types explicitly to basic_iostream. That's what I did. Patch pending.
-benjamin
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7216
^ permalink raw reply [flat|nested] 3+ messages in thread
* libstdc++/7216: basic_iostream::traits_type is ambiguous issue
@ 2002-07-05 7:06 dens
0 siblings, 0 replies; 3+ messages in thread
From: dens @ 2002-07-05 7:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 7216
>Category: libstdc++
>Synopsis: basic_iostream::traits_type is ambiguous issue
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 05 07:06:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Denis Nagorny
>Release: libstdc++3-3.0.1-3
>Organization:
>Environment:
Linux RedHat 7.2
libstdc++3-3.0.1-3
gcc3-c++-3.0.1-3
>Description:
When I try to compile my program:
typedef std::char_traits<char> tCT;
typedef std::basic_iostream<char,tCT> Iostr;
int main(int,char*[])
{
Iostr::traits_type * some;
return 0;
}
with g++3 & your library compiler produce following message:
test.cpp:6: request for member `traits_type' is ambiguous
/usr/include/g++-v3/bits/std_ostream.h:54: candidates are: typedef struct
std::char_traits<char> std::basic_ostream<char, std::char_traits<char>
>::traits_type
/usr/include/g++-v3/bits/std_istream.h:54: typedef struct
std::char_traits<char> std::basic_istream<char, std::char_traits<char>
>::traits_type
I know that C++ standard 27.6.1.1 & 27.6.2.1 describes public types of classes basic_istream & basic_ostream such as:
.......
public:
// Types (inherited from basic_ios (27.4.4)):
typedef charT char_type;
typedef typename traits::int_type int_type;
typedef typename traits::pos_type pos_type;
typedef typename traits::off_type off_type;
typedef traits traits_type;
.............
But I believe that you can place this types in basic_ios only.
>How-To-Repeat:
Try to compile attached sample
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.cpp"
I2luY2x1ZGUgPGlvc3RyZWFtPiAKdHlwZWRlZiBzdGQ6OmNoYXJfdHJhaXRzPGNoYXI+IHRDVDsK
dHlwZWRlZiBzdGQ6OmJhc2ljX2lvc3RyZWFtPGNoYXIsdENUPiBJb3N0cjsKaW50IG1haW4oaW50
LGNoYXIqW10pCnsKCUlvc3RyOjp0cmFpdHNfdHlwZSAqIHNvbWU7OwoJcmV0dXJuIDA7Cn0KCg==
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-07-27 21:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-27 14:56 libstdc++/7216: basic_iostream::traits_type is ambiguous issue bkoz
-- strict thread matches above, loose matches on Subject: below --
2002-07-25 16:50 bkoz
2002-07-05 7:06 dens
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).