c++/5245: gcc 2.95.2 doesn't find runtime_error constructor

jfranzoy@hotmail.com jfranzoy@hotmail.com
Wed Jan 2 06:36:00 GMT 2002


>Number:         5245
>Category:       c++
>Synopsis:       gcc 2.95.2 doesn't find runtime_error constructor
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 02 06:36:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Juan Carlos Franzoy
>Release:        Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs
>Organization:
>Environment:
uname -a:SunOS daniela 5.6 Generic_105181-05 sun4u sparc SUNW,Ultra-5_10
>Description:
If it is defined _PTHREADS preprocessor constant gcc does not find std::runtime_error::runtime_error(const std::string&) constructor.
In other words, if you change std::string type, by changing the allocator type, it does not instantiate the proper constructor, althougth it is defined inline in stdexcept header file.
>How-To-Repeat:
#define     _PTHREADS   1
#include    <stdexcept>
int main() {
    std::runtime_error r("PEPE");
    return 0;
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-prs mailing list