------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-13 
21:52 -------
Confirmed,
A small testcase:
typedef void(*func_type) (void);

void g(void);

void f(func_type a)
{
  if (a == (func_type) 1 || a == (func_type)0 || a == (func_type) -1)
   g();
}


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|4.0.1                       |4.0.1 4.1.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-13 21:52:19
               date|                            |
            Summary|[4.0.x regression] Generates|[4.0/4.1 regression]
                   |wrong code for funcptr      |build_range_test generates
                   |comparison                  |wrong code for funcptr
                   |                            |comparison
   Target Milestone|---                         |4.0.2


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

Reply via email to