This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5595: illegal concstructor invokation
- From: jason at gcc dot gnu dot org
- To: binder at iue dot tuwien dot ac dot at, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jason at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 18 Mar 2002 17:57:41 -0000
- Subject: Re: c++/5595: illegal concstructor invokation
- Reply-to: jason at gcc dot gnu dot org, binder at iue dot tuwien dot ac dot at, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jason at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: illegal concstructor invokation
Responsible-Changed-From-To: unassigned->jason
Responsible-Changed-By: jason
Responsible-Changed-When: Mon Mar 18 09:57:40 2002
Responsible-Changed-Why:
x
State-Changed-From-To: open->closed
State-Changed-By: jason
State-Changed-When: Mon Mar 18 09:57:40 2002
State-Changed-Why:
There is no bug here. "false" is a valid argument to the string constructor taking a char*. The constructor doesn't like getting a null pointer, so it throws an exception. You don't catch the exception, so the program terminates.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5595