[Bug fortran/30478] New: FAIL: gfortran.dg/enum_2.f90 -O (internal compiler error)
danglin at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jan 16 00:28:00 GMT 2007
Executing on host: /mnt/gnu/gcc/objdir/gcc/testsuite/gfortran/../../gfortran
-B/
mnt/gnu/gcc/objdir/gcc/testsuite/gfortran/../../
/mnt/gnu/gcc/gcc/gcc/testsuite/
gfortran.dg/enum_2.f90 -O -pedantic-errors -S -o enum_2.s (timeout =
300
)
In file /mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/enum_2.f90:8
integer :: x ! { dg-error "Unexpected data declaration" }
1
Error: Unexpected data declaration statement at (1)
/mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/enum_2.f90:0: internal compiler
error
: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
compiler exited with status 1
output is:
In file /mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/enum_2.f90:8
integer :: x ! { dg-error "Unexpected data declaration" }
1
Error: Unexpected data declaration statement at (1)
/mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/enum_2.f90:0: internal compiler
error
: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
FAIL: gfortran.dg/enum_2.f90 -O (internal compiler error)
PASS: gfortran.dg/enum_2.f90 -O (test for errors, line 8)
FAIL: gfortran.dg/enum_2.f90 -O (test for errors, line 9)
FAIL: gfortran.dg/enum_2.f90 -O (test for errors, line 12)
FAIL: gfortran.dg/enum_2.f90 -O (test for excess errors)
Excess errors:
/mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/enum_2.f90:0: internal compiler
error
: Segmentation fault
Executing on host: /mnt/gnu/gcc/objdir/gcc/testsuite/gfortran/../../gfortran
-B/
mnt/gnu/gcc/objdir/gcc/testsuite/gfortran/../../
/mnt/gnu/gcc/gcc/gcc/testsuite/
gfortran.dg/enum_3.f90 -O -pedantic-errors -S -o enum_3.s (timeout =
300
)
In file /mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/enum_3.f90:7
enumerator :: red, black = 2.2 ! { dg-error "initialized with integer expr
1
Error: ENUMERATOR (1) not initialized with integer expression
In file /mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/enum_3.f90:8
enumerator :: blue = "x" ! { dg-error "initialized with integer expression
1
Error: ENUMERATOR (1) not initialized with integer expression
In file /mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/enum_3.f90:9
end enum ! { dg-error "has no ENUMERATORS" }
1
Error: ENUM declaration at (1) has no ENUMERATORS
compiler exited with status 1
output is:
In file /mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/enum_3.f90:7
enumerator :: red, black = 2.2 ! { dg-error "initialized with integer expr
1
Error: ENUMERATOR (1) not initialized with integer expression
In file /mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/enum_3.f90:8
enumerator :: blue = "x" ! { dg-error "initialized with integer expression
1
Error: ENUMERATOR (1) not initialized with integer expression
In file /mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/enum_3.f90:9
end enum ! { dg-error "has no ENUMERATORS" }
1
Error: ENUM declaration at (1) has no ENUMERATORS
PASS: gfortran.dg/enum_3.f90 -O (test for errors, line 7)
PASS: gfortran.dg/enum_3.f90 -O (test for errors, line 8)
PASS: gfortran.dg/enum_3.f90 -O (test for errors, line 9)
PASS: gfortran.dg/enum_3.f90 -O (test for excess errors)
(gdb) r
Starting program: /mnt/gnu/gcc/objdir/gcc/f951
/mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/enum_2.f90 -quiet -dumpbase
enum_2.f90 -auxbase-strip enum_2.s -O -pedantic-errors -version -o enum_2.s
warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.
GNU F95 version 4.1.2 20070115 (prerelease) (hppa2.0w-hp-hpux11.11)
compiled by GNU C version 4.1.2 20070115 (prerelease).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
In file /mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/enum_2.f90:8
integer :: x ! { dg-error "Unexpected data declaration" }
1
Error: Unexpected data declaration statement at (1)
Program received signal SIGSEGV, Segmentation fault.
0x003e75d8 in __gmpz_add_ui ()
(gdb) bt
#0 0x003e75d8 in __gmpz_add_ui ()
#1 0x0003402c in gfc_enum_initializer (last_initializer=0x400817a8, where=
{nextc = 0x0, lb = 0x0}) at ../../gcc/gcc/fortran/arith.c:2475
#2 0x000463ec in variable_decl (elem=0) at ../../gcc/gcc/fortran/decl.c:1299
#3 0x0004668c in gfc_match_enumerator_def ()
at ../../gcc/gcc/fortran/decl.c:4126
#4 0x00070b28 in match_word (str=0x7aef32e0 "",
subr=@0x4001377a: 0x465b8 <gfc_match_enumerator_def>, old_locus=0x7eff0a6c)
at ../../gcc/gcc/fortran/parse.c:65
#5 0x00070ca0 in decode_statement () at ../../gcc/gcc/fortran/parse.c:135
#6 0x000718e8 in next_statement () at ../../gcc/gcc/fortran/parse.c:360
#7 0x00072bb4 in parse_spec (st=ST_END_ENUM)
at ../../gcc/gcc/fortran/parse.c:1378
#8 0x00074160 in parse_progunit (st=2062496480)
at ../../gcc/gcc/fortran/parse.c:2325
#9 0x000745d8 in gfc_parse_file () at ../../gcc/gcc/fortran/parse.c:2621
#10 0x00095d2c in gfc_be_parse_file (set_yydebug=2062496480)
at ../../gcc/gcc/fortran/f95-lang.c:289
#11 0x0018a87c in toplev_main (argc=1074013248, argv=0x40042c40)
at ../../gcc/gcc/toplev.c:991
#12 0x000bf4bc in main (argc=2062496480, argv=0x0) at ../../gcc/gcc/main.c:35
(gdb) disass 0x003e75c8 0x003e75e8
Dump of assembler code from 0x3e75c8 to 0x3e75e8:
0x003e75c8 <__gmpz_add_ui+104>: ldw -70(sp),r3
0x003e75cc <__gmpz_add_ui+108>: bv r0(rp)
0x003e75d0 <__gmpz_add_ui+112>: ldw,mb -80(sp),r7
0x003e75d4 <__gmpz_add_ui+116>: cmpib,>,n 0,r4,0x3e76d4 <__gmpz_add_ui+372>
0x003e75d8 <__gmpz_add_ui+120>: ldw 0(r25),ret0
0x003e75dc <__gmpz_add_ui+124>: add,l r5,ret0,ret0
0x003e75e0 <__gmpz_add_ui+128>: cmpb,>>= ret0,r5,0x3e769c <__gmpz_add_ui+316>
0x003e75e4 <__gmpz_add_ui+132>: stw ret0,0(r22)
End of assembler dump.
(gdb) p/x $r25
$1 = 0x0
--
Summary: FAIL: gfortran.dg/enum_2.f90 -O (internal compiler
error)
Product: gcc
Version: 4.1.2
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: hppa2.0w-hp-hpux11.11
GCC host triplet: hppa2.0w-hp-hpux11.11
GCC target triplet: hppa2.0w-hp-hpux11.11
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30478
More information about the Gcc-bugs
mailing list