https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69088

            Bug ID: 69088
           Summary: type conversion to int
           Product: gcc
           Version: 4.8.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ka_bena at yahoo dot fr
  Target Milestone: ---

#include <stdio.h>         
int main()
{         
  float B = 0.F     ;
  int   A = 1.F / B ;

  __float128 B1 = 0.Q      ;
  int        A1 = 1.Q / B1 ;

 printf("A  = %d\n", A ); 
 printf("A1 = %d\n", A1);

return 0;
}
/*
RESULTS::
A  = -2147483648
A1 =  2147483647

 gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)
 gcc -std=gnu99 -Wall -Wextra -omain_conversion.exe main_conversion.c ;
*/

Reply via email to