From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 124793 invoked by alias); 13 Aug 2015 14:42:15 -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 124746 invoked by uid 48); 13 Aug 2015 14:42:11 -0000 From: "bdavis at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/44348] ICE in build_function_decl Date: Thu, 13 Aug 2015 14:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: bdavis at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cc Message-ID: In-Reply-To: References: 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-08/txt/msg00905.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44348 Bud Davis changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bdavis at gcc dot gnu.org --- Comment #7 from Bud Davis --- Current status: Original report is fixed. GNU Fortran (GCC) 6.0.0 20150811 (experimental) [bdavis@linux1 ~/gcc]$ cat a.f subroutine sub(ff) contains subroutine ff end subroutine end [bdavis@linux1 ~/gcc]$ ./run/bin/gfortran a.f a.f:3:72: Error: internal procedure 'ff' at (1) conflicts with DUMMY argument >>From comment #2, still broken [bdavis@linux1 ~/gcc]$ cat b.f subroutine s contains SUBROUTINE s END SUBROUTINE end subroutine [bdavis@linux1 ~/gcc]$ ./run/bin/gfortran b.f b.f:3:0: SUBROUTINE s 1 internal compiler error: in gfc_generate_function_code, at fortran/trans-decl.c:5781 0x6e7ff0 gfc_generate_function_code(gfc_namespace*) ../../current/gcc/fortran/trans-decl.c:5781 0x6e5f37 gfc_generate_contained_functions ../../current/gcc/fortran/trans-decl.c:5038 0x6e5f37 gfc_generate_function_code(gfc_namespace*) ../../current/gcc/fortran/trans-decl.c:5824 0x673490 translate_all_program_units ../../current/gcc/fortran/parse.c:5521 0x673490 gfc_parse_file() ../../current/gcc/fortran/parse.c:5726 0x6b4d22 gfc_be_parse_file ../../current/gcc/fortran/f95-lang.c:209 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.