This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]