This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/7413: Solaris 2.6 ctype<char>::classic_table returns incorrect value
- From: david dot holt2 at hp dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 26 Jul 2002 13:18:57 -0000
- Subject: libstdc++/7413: Solaris 2.6 ctype<char>::classic_table returns incorrect value
- Reply-to: david dot holt2 at hp dot com
>Number: 7413
>Category: libstdc++
>Synopsis: Solaris 2.6 ctype<char>::classic_table returns incorrect value
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 26 06:26:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: David Holt
>Release: gcc-3.1
>Organization:
>Environment:
Solaris 2.6, probably Solaris 2.5 (not verified)
GCC 3.1
>Description:
The Solaris 2.6 function ctype<char>::classic_table() returns a null pointer instead of the __ctype_mask.
This causes all users of the ctype facet with default args to dump core when accessing the ctype member array _M_table, e.g. in the ctype::is function.
One such example where this is used is in all istream::operator>> functions, which currently dump core.
>How-To-Repeat:
Just call operator>> on an istream.
>Fix:
see attached diff
>Release-Note:
>Audit-Trail:
>Unformatted: