public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7781: std::string foo = foo + "b" is compiled without warning!
@ 2002-08-30 13:36 udbz
0 siblings, 0 replies; 2+ messages in thread
From: udbz @ 2002-08-30 13:36 UTC (permalink / raw)
To: gcc-gnats
>Number: 7781
>Category: c++
>Synopsis: std::string foo = foo + "b" is compiled without warning!
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Aug 30 13:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: udbz@rz.uni-karlsruhe.de
>Release: gcc-3.0.3
>Organization:
>Environment:
>Description:
The code construct below IMHO never makes sense and
should spill a warning.
>How-To-Repeat:
#include <iostream.h>
#include <string>
int main()
{
std::string foo = foo + "b";
std::cout << foo << endl;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/7781: std::string foo = foo + "b" is compiled without warning!
@ 2002-10-28 13:40 reichelt
0 siblings, 0 replies; 2+ messages in thread
From: reichelt @ 2002-10-28 13:40 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, udbz
Synopsis: std::string foo = foo + "b" is compiled without warning!
State-Changed-From-To: open->closed
State-Changed-By: reichelt
State-Changed-When: Mon Oct 28 13:40:18 2002
State-Changed-Why:
Duplicate of PR 5582 (only with strings instead of ints).
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7781
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-28 21:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-30 13:36 c++/7781: std::string foo = foo + "b" is compiled without warning! udbz
2002-10-28 13:40 reichelt
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).