public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/5245: gcc 2.95.2 doesn't find runtime_error constructor
@ 2002-01-02  6:36 jfranzoy
  0 siblings, 0 replies; 2+ messages in thread
From: jfranzoy @ 2002-01-02  6:36 UTC (permalink / raw)
  To: gcc-gnats


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c++/5245: gcc 2.95.2 doesn't find runtime_error constructor
@ 2002-10-24 16:04 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2002-10-24 16:04 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jfranzoy, nobody

Synopsis: gcc 2.95.2 doesn't find runtime_error constructor

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Thu Oct 24 16:04:33 2002
State-Changed-Why:
         This works for me. The code also asks for trouble, and I don't think
          this would be supported anyway. The C++ standard library used to
          have the requirement that you must compile it with the same flags
          (and allocators) as your user programs.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5245


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-24 23:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-02  6:36 c++/5245: gcc 2.95.2 doesn't find runtime_error constructor jfranzoy
2002-10-24 16:04 bangerth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).