From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12574 invoked by alias); 30 Aug 2002 19:46:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 12560 invoked by uid 71); 30 Aug 2002 19:46:00 -0000 Date: Fri, 30 Aug 2002 13:06:00 -0000 Message-ID: <20020830194600.12559.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Gabriel Dos Reis Subject: Re: c++/7775: std::string foo = foo + "b" is erroneously compiled Reply-To: Gabriel Dos Reis X-SW-Source: 2002-08/txt/msg00643.txt.bz2 List-Id: The following reply was made to PR c++/7775; it has been noted by GNATS. From: Gabriel Dos Reis To: Peter Schlaile Cc: gcc-gnats@gcc.gnu.org Subject: Re: c++/7775: std::string foo = foo + "b" is erroneously compiled Date: 30 Aug 2002 21:31:45 +0200 Peter Schlaile writes: | Hi! | | On 30 Aug 2002, Gabriel Dos Reis wrote: | | > udbz@rz.uni-karlsruhe.de writes: | > | > No, this is not a bug. Just before "=", the name foo is available for | > use. The bevaviour is undefined, but that doesn't mean the compiler | > is bogus. It is a bug in your program. | | I don't mind Sure, you should, because you filled this PR as a "accept-illegal". And the code wasn't invalid and the compiler was right in accepting it. -- Gaby