From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 117909 invoked by alias); 21 Oct 2015 10:11:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 117876 invoked by uid 48); 21 Oct 2015 10:11:37 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/68040] New: [5/6 Regression] Internal compiler error: Error reporting routines re-entered. Date: Wed, 21 Oct 2015 10:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-10/txt/msg01720.txt.bz2 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 ) at ../../../_clean/libgcc/unwind-dw2.c:1563 #4 0x0000000100d2f1c8 in _Unwind_Backtrace (trace=0x100c878f0 , trace_argument=0x7fff7a2f8300) at ../../../_clean/libgcc/unwind.inc:283 #5 0x0000000100c879e9 in backtrace_full (state=0x1420f5000, skip=, callback=, error_callback=, data=) at ../../_clean/libbacktrace/backtrace.c:127 #6 0x0000000100c4c743 in diagnostic_action_after_output (context=0x1415a7ac0, diag_kind=) 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=) at ../../_clean/gcc/diagnostic.c:1141 #9 0x0000000100c4c256 in fancy_abort (file=, line=, function=) 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=) at ../../_clean/gcc/diagnostic.c:948 #13 0x0000000100ca61f1 in decl_attributes (node=, attributes=, flags=) at ../../_clean/gcc/attribs.c:446 #14 0x00000001000f6ae2 in gfc_get_symbol_decl (sym=) at ../../_clean/gcc/fortran/trans-decl.c:1557 #15 0x00000001000f9339 in gfc_create_module_variable (sym=) at ../../_clean/gcc/fortran/trans-decl.c:4567 #16 0x00000001000bf0dc in do_traverse_symtree (st=, st_func=, sym_func=) at ../../_clean/gcc/fortran/symbol.c:3719 #17 0x00000001000fc82e in gfc_generate_module_vars (ns=) at ../../_clean/gcc/fortran/trans-decl.c:5004 #18 0x00000001000d8949 in gfc_generate_module_code (ns=) 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