This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/7775: std::string foo = foo + "b" is erroneously compiled


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]