From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 35473385AF8E; Tue, 18 Jul 2023 14:56:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 35473385AF8E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689692200; bh=oxvdsHWZqbVxywe+hl+jJiwRls0nNKoorf9U9+9EvXA=; h=From:To:Subject:Date:From; b=DEwODHnLVjr4yt9UNqubp4z4nXa1crf9wf64IeEykSVybDQAzchf1pkhq1N1luz42 b0MY7PFWSZXG92vN6q/twmcJwHm64CkkqgVvgRXRNCsRRSYB4+JHhYJ2b2B4+PJvSu LlTbkPtFmgnENK8x1GmGr6+Or3uqcJNQrvPm4ZqI= From: "adrien.morison at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/110720] New: Internal compiler error (segmentation fault) in gfc_expression_rank Date: Tue, 18 Jul 2023 14:56:39 +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: 13.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: adrien.morison at gmail dot com 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 attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110720 Bug ID: 110720 Summary: Internal compiler error (segmentation fault) in gfc_expression_rank Product: gcc Version: 13.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: adrien.morison at gmail dot com Target Milestone: --- Created attachment 55569 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55569&action=3Dedit Minimal test case triggering the problem, foo_mod.f90 in the above command This is with a development snapshot on commit bef95ba085b0ae9bf3eb79a8eed685236d773116 Compiling the attached code lead to an internal compiler error. The attached code is a self-contained example that triggers the problem, and is a stripp= ed down version of the actual code (which does a bunch of computations instead= of setting things to 0). Command: gfortran -v -save-temps -freport-bug -c foo_mod.f90 Output: Using built-in specs. COLLECT_GCC=3Dgfortran Target: x86_64-pc-linux-gnu Configured with: /build/gcc/src/gcc/configure --enable-languages=3Dada,c,c++,d,fortran,go,lto,objc,obj-c++ --enable-boots= trap --prefix=3D/usr --libdir=3D/usr/lib --libexecdir=3D/usr/lib --mandir=3D/usr= /share/man --infodir=3D/usr/share/info --with-bugurl=3Dhttps://bugs.archlinux.org/ --with-build-config=3Dbootstrap-lto --with-linker-hash-style=3Dgnu --with-system-zlib --enable-__cxa_atexit --enable-cet=3Dauto --enable-checking=3Drelease --enable-clocale=3Dgnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-obj= ect --enable-libstdcxx-backtrace --enable-link-serialization=3D1 --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=3Dposix --disable-libssp --disable-libstdc= xx-pch --disable-werror Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.1.1 20230714 (GCC) COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-freport-bug' '-c' '-mtune=3Dgene= ric' '-march=3Dx86-64' /usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/f951 foo_mod.f90 -quiet -dumpbase foo_mod.f90 -dumpbase-ext .f90 -mtune=3Dgeneric -march=3Dx86-64 -version -freport-bug -fintrinsic-modules-path /usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/finclude -fpre-include=3D/usr/include/finclude/math-vector-fortran.h -o foo_mod.s GNU Fortran (GCC) version 13.1.1 20230714 (x86_64-pc-linux-gnu) compiled by GNU C version 13.1.1 20230714, GMP version 6.2.1, MPFR version 4.2.0-p9, MPC version 1.3.1, isl version isl-0.26-GMP GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 f951: internal compiler error: Segmentation fault 0x1a10354 internal_error(char const*, ...) ???:0 0x77d345 gfc_expression_rank(gfc_expr*) ???:0 0x7392cc gfc_match_expr(gfc_expr**) ???:0 0x7792e0 gfc_match_actual_arglist(int, gfc_actual_arglist**, bool) ???:0 0x784cd3 gfc_match_rvalue(gfc_expr**) ???:0 0x7392cc gfc_match_expr(gfc_expr**) ???:0 0x739778 gfc_match(char const*, ...) ???:0 0x739f29 gfc_match_assignment() ???:0 0x793ac4 gfc_parse_file() ???:0 Please submit a full bug report, with preprocessed source. Please include the complete backtrace with any bug report. See for instructions.=