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++/50115] Integer test optimised away at -O2 by the VRP


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50115

--- Comment #7 from Balint Szente <balint at szentedwg dot ro> 2011-08-18 11:59:59 UTC ---
Thanks for your prompt reply. I understand that my test case is undefined
behavior from the C/C++ standard's perspective.

I disregarded that it is not allowed to make any overflows. Unfortunately C/C++
does not provide anything to detect these situations AFAIK.


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