c++/7775: std::string foo = foo + "b" is erroneously compiled
Gabriel Dos Reis
gdr@integrable-solutions.net
Fri Aug 30 10:06:00 GMT 2002
The following reply was made to PR c++/7775; it has been noted by GNATS.
From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: nathan@gcc.gnu.org
Cc: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org,
udbz@rz.uni-karlsruhe.de, gcc-gnats@gcc.gnu.org
Subject: Re: c++/7775: std::string foo = foo + "b" is erroneously compiled
Date: 30 Aug 2002 18:40:07 +0200
nathan@gcc.gnu.org writes:
| Synopsis: std::string foo = foo + "b" is erroneously compiled
|
| State-Changed-From-To: open->closed
| State-Changed-By: nathan
| State-Changed-When: Fri Aug 30 09:07:58 2002
| State-Changed-Why:
| The code is ill-formed. No diagnostic is required.
Well, the code invokes an undefined behaviour, but it is not
ill-formed.
-- Gaby
More information about the Gcc-prs
mailing list