https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35779
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jvdelisle at gcc dot gnu.org
--- Comment #15 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
$ gfc pr35779.f90
pr35779.f90:9:39:
9 | integer,PARAMETER :: I2(10) = (/(J1, J1=its_bad,1,-1)/)
| 1
Error: Invalid character in name at (1)
$ flang pr35779.f90
error: Semantic errors in pr35779.f90
./pr35779.f90:9:37: error: Must be a constant value
integer,PARAMETER :: I2(10) = (/(J1, J1=its_bad,1,-1)/)
^^^^^^^^^^^^^^^^^^^^^^^^^^
The code here is invalid. Maybe not the best error message and not worth
fixing.
The last comment references initialization_25.f90 in the testsuite. All the
code there is commented out.
I suggest we adjust the existing testcase with a proper dg-error message and
close this.