libstdc++/7413: Solaris 2.6 ctype<char>::classic_table returns incorrect value

david.holt2@hp.com david.holt2@hp.com
Fri Jul 26 08:26:00 GMT 2002


>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:



More information about the Gcc-bugs mailing list