This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7775: std::string foo = foo + "b" is erroneously compiled
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: nathan at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, udbz at rz dot uni-karlsruhe dot de, gcc-gnats at gcc dot gnu dot org
- Date: 30 Aug 2002 18:40:07 +0200
- Subject: Re: c++/7775: std::string foo = foo + "b" is erroneously compiled
- Organization: Integrable Solutions
- References: <20020830160800.18747.qmail@sources.redhat.com>
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