Executing on host: /home/dave/gcc-4.2/objdir/gcc/testsuite/gfortran/../../gfortr an -B/home/dave/gcc-4.2/objdir/gcc/testsuite/gfortran/../../ /home/dave/gcc-4.2/ gcc/gcc/testsuite/gfortran.dg/enum_2.f90 -O -pedantic-errors -S -o enum_2.s (timeout = 300) In file /home/dave/gcc-4.2/gcc/gcc/testsuite/gfortran.dg/enum_2.f90:8
integer :: x ! { dg-error "Unexpected data declaration" } 1 Error: Unexpected data declaration statement at (1) In file /home/dave/gcc-4.2/gcc/gcc/testsuite/gfortran.dg/enum_2.f90:9 enumerator blue = 1 ! { dg-error "Syntax error in ENUMERATOR definition" } 1 Error: ENUMERATOR (1) not initialized with integer expression In file /home/dave/gcc-4.2/gcc/gcc/testsuite/gfortran.dg/enum_2.f90:12 enumerator :: sun ! { dg-error "ENUM" } 1 Error: ENUM definition statement expected before (1) compiler exited with status 1 output is: In file /home/dave/gcc-4.2/gcc/gcc/testsuite/gfortran.dg/enum_2.f90:8 integer :: x ! { dg-error "Unexpected data declaration" } 1 Error: Unexpected data declaration statement at (1) In file /home/dave/gcc-4.2/gcc/gcc/testsuite/gfortran.dg/enum_2.f90:9 enumerator blue = 1 ! { dg-error "Syntax error in ENUMERATOR definition" } 1 Error: ENUMERATOR (1) not initialized with integer expression In file /home/dave/gcc-4.2/gcc/gcc/testsuite/gfortran.dg/enum_2.f90:12 enumerator :: sun ! { dg-error "ENUM" } 1 Error: ENUM definition statement expected before (1) PASS: gfortran.dg/enum_2.f90 -O (test for errors, line 8) FAIL: gfortran.dg/enum_2.f90 -O (test for errors, line 9) PASS: gfortran.dg/enum_2.f90 -O (test for errors, line 12) FAIL: gfortran.dg/enum_2.f90 -O (test for excess errors) Excess errors: /home/dave/gcc-4.2/gcc/gcc/testsuite/gfortran.dg/enum_2.f90:9: Error: ENUMERATOR (1) not initialized with integer expression -- Summary: FAIL: gfortran.dg/enum_2.f90 -O (test for excess errors) Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: danglin at gcc dot gnu dot org GCC build triplet: hppa-unknown-linux-gnu GCC host triplet: hppa-unknown-linux-gnu GCC target triplet: hppa-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27361