This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/5245: gcc 2.95.2 doesn't find runtime_error constructor
- From: jfranzoy at hotmail dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 2 Jan 2002 14:34:35 -0000
- Subject: c++/5245: gcc 2.95.2 doesn't find runtime_error constructor
- Reply-to: jfranzoy at hotmail dot com
>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: