https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83744

            Bug ID: 83744
           Summary: ICE in ../../gcc/gcc/fortran/dump-parse-tree.c:3093
                    while using -fc-prototypes
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: emsr at gcc dot gnu.org
  Target Milestone: ---

Created attachment 43065
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43065&action=edit
The little molule that iCEs

I'm getting ICEs whe I run 'gfortran -fc-prototypes' sometimes.
Otherwise it's a *very* nice feature.

Warning: I may not have the Fortran knowledge.

For one of the files that's troubling me I run

$ $HOME/bin/bin/gfortran -fc-prototypes bugerr.f95

And get this output:
--------------------------------------------------------------------
typedef struct utderror_t {
    int projectid;
    int txantennaid;
    int rxantennaid;
    int pathid;
    int frequencysetid;
    int frequencyid;
    int errornumber;
    int nerrorloc;
    double errorstartloc[3];
    double errorendloc[3];
f951: internal compiler error: in write_decl, at fortran/dump-parse-tree.c:3093
0x5ce2a2 write_decl
        ../../gcc/gcc/fortran/dump-parse-tree.c:3093
0x8903c5 write_type
        ../../gcc/gcc/fortran/dump-parse-tree.c:3118
0x8903c5 write_interop_decl
        ../../gcc/gcc/fortran/dump-parse-tree.c:3221
0x922232 do_traverse_symtree
        ../../gcc/gcc/fortran/symbol.c:4157
0x8950c3 gfc_dump_c_prototypes(gfc_namespace*, _IO_FILE*)
        ../../gcc/gcc/fortran/dump-parse-tree.c:2987
0x8ee5c7 gfc_parse_file()
        ../../gcc/gcc/fortran/parse.c:6251
0x933cdf gfc_be_parse_file
        ../../gcc/gcc/fortran/f95-lang.c:204
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
--------------------------------------------------------------------

I'm running a pretty recent build of gcc:

ed@bad-horse:~/ARAPP/diffraction$ $HOME/bin/bin/gfortran -v
Using built-in specs.
COLLECT_GCC=/home/ed/bin/bin/gfortran
COLLECT_LTO_WRAPPER=/home/ed/bin/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure --prefix=/home/ed/bin --enable-lto
--enable-languages=c,c++,fortran,go,lto,objc,obj-c++
Thread model: posix
gcc version 8.0.0 20180104 (experimental) (GCC)

Reply via email to