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]

[Bug c++/71892] Recent optimization changes introduce bugs


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71892

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Both examples you give are undefined behaviour according to the C++ standard.
You can claim the code is valid, but that doesn't make it true.

You seem to be confusing "it worked OK until now" with "this code is valid
according to the language standard".

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