------- Comment #2 from reichelt at gcc dot gnu dot org  2006-04-12 14:59 
-------
Confirmed.
Reduced testcase (compile with -O -ffast-math):

======================================================
double floor(double);

inline int bar(double x) { return (int)floor(x); }

int foo(int i) { return bar(i); }
======================================================

bug.c: In function 'foo':
bug.c:3: internal compiler error: in get_callee_fndecl, at tree.c:5809
Please submit a full bug report, [etc.]

Happens with C and C++ frontend.

There seems to be something wrong with -ffast-math and floor.
Renaming floor to something else in the above testcase makes things
work again.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
          Component|c++                         |middle-end
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code, monitored
   Last reconfirmed|0000-00-00 00:00:00         |2006-04-12 14:59:12
               date|                            |
            Summary|ICE when compiling vtk-5.0  |[4.1/4.2 regression] ICE
                   |                            |with floor and -ffast-math
   Target Milestone|---                         |4.1.1


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

Reply via email to