[Bug tree-optimization/21248] ICE in convert_move, at expr.c:339
belyshev at depni dot sinp dot msu dot ru
gcc-bugzilla@gcc.gnu.org
Thu Apr 28 02:35:00 GMT 2005
------- Additional Comments From belyshev at depni dot sinp dot msu dot ru 2005-04-28 02:34 -------
// reduced testcase, compile with -O1 -free-pre
template <class T> inline T klamp (T a, T l, T h)
{
return (a < l)? l : ((a > h)? h : a);
}
int foo (char);
int f (void)
{
float r;
return foo (klamp (r * 1.1f, 0.f, 255.f));
}
reverting patch from bug 21173 exposes this bug, so this is a dup.
*** This bug has been marked as a duplicate of 21173 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Component|c++ |tree-optimization
GCC build triplet|i686-pc-linux-gnu |
GCC host triplet|i686-pc-linux-gnu |
GCC target triplet|i686-pc-linux-gnu |
Keywords| |ice-on-valid-code
Known to fail| |4.0.0
Known to work|4.1.0 |4.1.0 4.0.1
Resolution| |DUPLICATE
Summary|internal compiler error |ICE in convert_move, at
| |expr.c:339
Target Milestone|--- |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21248
More information about the Gcc-bugs
mailing list