$cat a.f program main write(*,*) 3horz end $gcc -std=legacy a.f a.f: In function 'MAIN__': a.f:2: internal compiler error: Bad IO basetype (9) Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. I don't know if this is really that valid.
Confirmed.
I have a patch for this, but I want to see if I can move it up into the parsing/matching portion of gfortran.
Patch is here http://gcc.gnu.org/ml/fortran/2006-07/msg00015.html
Subject: Bug 28213 Author: fengwang Date: Tue Jul 11 04:09:40 2006 New Revision: 115326 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115326 Log: 2006-07-11 Feng Wang <fengwang@nudt.edu.cn> PR fortran/28213 * gfortran.dg/hollerith4.f90: Test hollerith constants used in I/O list. 2006-07-11 Feng Wang <fengwang@nudt.edu.cn> PR fortran/28213 * trans-io.c (ransfer_expr): Deal with Hollerith constants used in I/O list. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-io.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/hollerith4.f90
Subject: Bug 28213 Author: fengwang Date: Tue Jul 11 04:10:31 2006 New Revision: 115327 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115327 Log: 2006-07-11 Feng Wang <fengwang@nudt.edu.cn> PR fortran/28213 * gfortran.dg/hollerith4.f90: Test hollerith constants used in I/O list. 2006-07-11 Feng Wang <fengwang@nudt.edu.cn> PR fortran/28213 * trans-io.c (ransfer_expr): Deal with Hollerith constants used in I/O list. Modified: branches/gcc-4_1-branch/gcc/fortran/ChangeLog branches/gcc-4_1-branch/gcc/fortran/trans-io.c branches/gcc-4_1-branch/gcc/testsuite/ChangeLog branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/hollerith4.f90
Fixed on trunk and 4.1