This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/69524] New: [ICE] [F2008] Compiler segfaults on simple testcase @ -O0
- From: "kyukhin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 28 Jan 2016 07:55:46 +0000
- Subject: [Bug fortran/69524] New: [ICE] [F2008] Compiler segfaults on simple testcase @ -O0
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69524
Bug ID: 69524
Summary: [ICE] [F2008] Compiler segfaults on simple testcase @
-O0
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: kyukhin at gcc dot gnu.org
Target Milestone: ---
Created attachment 37501
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37501&action=edit
Reproducer
Attached testcase produces ICE while compiling w/ recent trunk:
$ ./build-x86_64-linux/gcc/gfortran -B./build-x86_64-linux/gcc -S 2.f08
f951: internal compiler error: in build_function_decl, at
fortran/trans-decl.c:2065
0x88c1df build_function_decl
/export/users/kyukhin/gcc/git/gcc2/gcc/fortran/trans-decl.c:2065
0x88ec53 gfc_create_function_decl(gfc_namespace*, bool)
/export/users/kyukhin/gcc/git/gcc2/gcc/fortran/trans-decl.c:2758
0x86361d gfc_generate_module_code(gfc_namespace*)
/export/users/kyukhin/gcc/git/gcc2/gcc/fortran/trans.c:2043
0x7f9d19 translate_all_program_units
/export/users/kyukhin/gcc/git/gcc2/gcc/fortran/parse.c:5599
0x7fa3f7 gfc_parse_file()
/export/users/kyukhin/gcc/git/gcc2/gcc/fortran/parse.c:5818
0x84c839 gfc_be_parse_file
/export/users/kyukhin/gcc/git/gcc2/gcc/fortran/f95-lang.c:201
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.