This is the mail archive of the 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/21248] ICE in convert_move, at expr.c:339

------- 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

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