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 tree-optimization/30911] VRP fails to eliminate range checks in Ada code



------- Comment #56 from baldrick at free dot fr  2008-03-30 14:26 -------
Subject: Re:  VRP fails to eliminate range checks in Ada code

> > What does "must be in the range" mean?  Firstly, the program behaviour is
> > undefined if a variable is outside its range.
> 
> That's not true.  The reference to an invalid value doesn't result in
> undefined behavior, it is a bounded error, and the result must be some
> predictable non-erroneous implementation-defined behavior.

This discussion continued on the gcc mailing list, starting here:
http://gcc.gnu.org/ml/gcc-patches/2008-03/msg01841.html


-- 


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


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