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

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jvdelisle at gcc dot gnu.org

--- Comment #1 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
With the parenthesis around the constant, it is being interpreted as a complex
number. The check in arith.c is taking this as a component of the complex
constant.

match_complex_constant in primary.c probably returns a MATCH_NO, but I think
the warning is occurring in the middle of the attempted matching process.

#0  gfc_warning_now (opt=opt@entry=201, 
    gmsgid=gmsgid@entry=0x140c530 "Change of value in conversion from %qs to
%qs at %L") at ../../trunk/gcc/fortran/error.c:1148
#1  0x000000000062e0ce in gfc_int2real (src=0x1ff3db0, kind=4)
    at ../../trunk/gcc/fortran/arith.c:2079
#2  0x00000000006abb35 in match_sym_complex_part (result=0x7fffffffd400)
    at ../../trunk/gcc/fortran/primary.c:1289
#3  match_complex_part (result=0x7fffffffd400)
    at ../../trunk/gcc/fortran/primary.c:1314
#4  0x00000000006abbc2 in match_complex_constant (
    result=result@entry=0x7fffffffd690)
    at ../../trunk/gcc/fortran/primary.c:1347

Reply via email to