This is GCC Bugzilla
This is GCC Bugzilla Version 2.20+
View Bug Activity | Format For Printing | Clone This Bug
The following code: program achar_test implicit none integer i character(*), parameter :: y(0:31) = (/(achar(i),i=64,95)/) write(*,*) y end program achar_test causes ICE on i686-mingw and powerpc-apple-darwin: $ gfortran achar_test.f90 achar_test.f90: In function 'MAIN__': achar_test.f90:5: internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.c:827
Same thing on i686-pc-linux-gnu.
Please don't put ICE in the summary.
Reduced testcase: program achar_test implicit none integer i character(*), parameter :: y(0:1) = (/'0','1'/) write(*,*) y end program achar_test This has nothing to do with ACHAR, and is the same issue as PR15959. *** This bug has been marked as a duplicate of 15959 ***