Bug 7781 - std::string foo = foo + "b" is compiled without warning!
Summary: std::string foo = foo + "b" is compiled without warning!
Status: RESOLVED DUPLICATE of bug 5582
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.0.3
: P3 enhancement
Target Milestone: ---
Assignee: Volker Reichelt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-30 13:06 UTC by udbz
Modified: 2003-06-02 21:18 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description udbz 2002-08-30 13:06:00 UTC
The code construct below IMHO never makes sense and
should spill a warning.

Release:
gcc-3.0.3

How-To-Repeat:
#include <iostream.h>
#include <string>

int main()
{
       std::string foo = foo + "b"; 
       std::cout << foo << endl;
}
Comment 1 Volker Reichelt 2002-10-28 13:40:18 UTC
*** This bug has been marked as a duplicate of 5582 ***