This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/68040] New: [5/6 Regression] Internal compiler error: Error reporting routines re-entered.


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

            Bug ID: 68040
           Summary: [5/6 Regression] Internal compiler error: Error
                    reporting routines re-entered.
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominiq at lps dot ens.fr
  Target Milestone: ---

On x86_64-apple-darwin14 compiling the following test (second test in pr47030)

module m
   real :: x
   common /mydata/ x
   !GCC$ attributes dllexport :: mydata
end module

with -Wall gives

f951: Warning: 'dllexport' attribute directive ignored [-Wattributes]

up to revision r217100 (2014-11-04), but gives the ICE

'
in pp_format, at pretty-print.c:617

Internal compiler error: Error reporting routines re-entered.
gfortran: internal compiler error: Abort trap: 6 (program f951)
Abort

for revisions after r217653 (2014-11-17).

backtrace

#0  0x00007fff8c312286 in __pthread_kill () from
/usr/lib/system/libsystem_kernel.dylib
#1  0x00007fff90d429f9 in pthread_kill () from
/usr/lib/system/libsystem_pthread.dylib
#2  0x00007fff960809b3 in abort () from /usr/lib/system/libsystem_c.dylib
#3  0x0000000100d2e761 in uw_init_context_1 (context=0x6,
outer_cfa=0x7fff5fbfea00, outer_ra=0x100c879e9 <backtrace_full+105>)
    at ../../../_clean/libgcc/unwind-dw2.c:1563
#4  0x0000000100d2f1c8 in _Unwind_Backtrace (trace=0x100c878f0 <unwind>,
trace_argument=0x7fff7a2f8300) at ../../../_clean/libgcc/unwind.inc:283
#5  0x0000000100c879e9 in backtrace_full (state=0x1420f5000, skip=<optimized
out>, callback=<optimized out>, error_callback=<optimized out>, 
    data=<optimized out>) at ../../_clean/libbacktrace/backtrace.c:127
#6  0x0000000100c4c743 in diagnostic_action_after_output (context=0x1415a7ac0,
diag_kind=<optimized out>) at ../../_clean/gcc/diagnostic.c:450
#7  0x0000000100c4c97e in diagnostic_report_diagnostic (context=0x1415a7ac0,
diagnostic=0x7fff5fbfeaf0) at ../../_clean/gcc/diagnostic.c:788
#8  0x0000000100c4d7d5 in internal_error (gmsgid=<optimized out>) at
../../_clean/gcc/diagnostic.c:1141
#9  0x0000000100c4c256 in fancy_abort (file=<optimized out>, line=<optimized
out>, function=<optimized out>) at ../../_clean/gcc/diagnostic.c:1209
#10 0x0000000100c502e9 in pp_format (pp=0x1422013a0, text=0x7fff5fbfee50) at
../../_clean/gcc/pretty-print.c:614
#11 0x0000000100c4c951 in diagnostic_report_diagnostic (context=0x1415a7ac0,
diagnostic=0x7fff5fbfee50) at ../../_clean/gcc/diagnostic.c:784
#12 0x0000000100c4cf74 in warning (opt=177, gmsgid=<optimized out>) at
../../_clean/gcc/diagnostic.c:948
#13 0x0000000100ca61f1 in decl_attributes (node=<optimized out>,
attributes=<optimized out>, flags=<optimized out>) at
../../_clean/gcc/attribs.c:446
#14 0x00000001000f6ae2 in gfc_get_symbol_decl (sym=<optimized out>) at
../../_clean/gcc/fortran/trans-decl.c:1557
#15 0x00000001000f9339 in gfc_create_module_variable (sym=<optimized out>) at
../../_clean/gcc/fortran/trans-decl.c:4567
#16 0x00000001000bf0dc in do_traverse_symtree (st=<optimized out>,
st_func=<optimized out>, sym_func=<optimized out>)
    at ../../_clean/gcc/fortran/symbol.c:3719
#17 0x00000001000fc82e in gfc_generate_module_vars (ns=<optimized out>) at
../../_clean/gcc/fortran/trans-decl.c:5004
#18 0x00000001000d8949 in gfc_generate_module_code (ns=<optimized out>) at
../../_clean/gcc/fortran/trans.c:1988
#19 0x000000010008bfbf in gfc_parse_file () at
../../_clean/gcc/fortran/parse.c:5533
#20 0x00000001000d22a6 in gfc_be_parse_file () at
../../_clean/gcc/fortran/f95-lang.c:209
#21 0x0000000100947d9a in compile_file () at ../../_clean/gcc/toplev.c:483
#22 0x0000000100d333fc in ?? ()
#23 0x0000000100d34db9 in main (argc=3, argv=0x7fff5fbff308) at
../../_clean/gcc/main.c:39


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]