[Bug fortran/91553] ICE in gfc_real2complex, at fortran/arith.c:2208

2019-09-14 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91553

kargl at gcc dot gnu.org changed:

   What|Removed |Added

   Priority|P3  |P4
 Status|NEW |RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |9.3

--- Comment #4 from kargl at gcc dot gnu.org ---
Fixed on trunk and 9-branch.  Closing.  Thanks for bug report.

[Bug fortran/91553] ICE in gfc_real2complex, at fortran/arith.c:2208

2019-09-14 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91553

--- Comment #3 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Sat Sep 14 17:05:17 2019
New Revision: 275716

URL: https://gcc.gnu.org/viewcvs?rev=275716=gcc=rev
Log:
2019-09-14  Steven G. Kargl  

PR fortran/91553
* simplify.c (gfc_convert_constant):  During conversion check if the
constant is enclosed in parenthesis, and simplify expression.

2019-09-14  Steven G. Kargl  

PR fortran/91553
* gfortran.dg/pr91553.f90: New test.

Added:
branches/gcc-9-branch/gcc/testsuite/gfortran.dg/pr91553.f90
Modified:
branches/gcc-9-branch/gcc/fortran/ChangeLog
branches/gcc-9-branch/gcc/fortran/simplify.c
branches/gcc-9-branch/gcc/testsuite/ChangeLog

[Bug fortran/91553] ICE in gfc_real2complex, at fortran/arith.c:2208

2019-09-11 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91553

--- Comment #2 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Wed Sep 11 18:37:31 2019
New Revision: 275657

URL: https://gcc.gnu.org/viewcvs?rev=275657=gcc=rev
Log:
2019-09-11  Steven G. Kargl  

PR fortran/91553
* simplify.c (gfc_convert_constant):  During conversion check if the
constant is enclosed in parenthesis, and simplify expression.

2019-09-11  Steven G. Kargl  

PR fortran/91553
* gfortran.dg/pr91553.f90: New test.

Added:
trunk/gcc/testsuite/gfortran.dg/pr91553.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/simplify.c
trunk/gcc/testsuite/ChangeLog

[Bug fortran/91553] ICE in gfc_real2complex, at fortran/arith.c:2208

2019-08-27 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91553

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2019-08-27
 CC||marxin at gcc dot gnu.org
 Ever confirmed|0   |1

[Bug fortran/91553] ICE in gfc_real2complex, at fortran/arith.c:2208

2019-08-26 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91553

G. Steinmetz  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code

--- Comment #1 from G. Steinmetz  ---

Without parenthesis :

$ cat z0.f90
program p
   print *, (1.0, 2.0) * [real :: 3.0 + 4.0]
end

$ gfortran-10 z0.f90 && ./a.out
   (7.,14.000)