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 middle-end/36124] conditional loop becomes infinite loop in -O2 (gcc 4.2 -> 4.3 regression)



------- Comment #4 from kargl at gcc dot gnu dot org  2008-05-04 17:01 -------
(In reply to comment #2)
> shouldn't gcc report a warning in this case ?
> 
> because silently entering an infinite loop is not very kind...
> 

If your code invokes undefined behavior, how is gcc going
to read your mind?  Maybe the programmer meant to enter
an infinite, so a warning isn't correct.


-- 


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


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