From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4097A386F002; Mon, 27 Jul 2020 19:03:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4097A386F002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1595876585; bh=LUMKUWqh5weaF7c5XiFq94aEthw+bDt1S7zm6clt1kk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AqY1iN0nbkiFBjthkoG3TQkTYf+FUMebPWDXLeYHyI+y7gU9MFKdeAfGFhtJrFr18 36S7z266cexwQT+subNhfudS1MPyF5odo2T4GkHvftwMjB1ZLQS1PhguyZqw0tgP6K uasjyS6GM80YZhdTKnMQr3+fHopEayLWAeizqvXg= From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/96320] gfortran 8-10 shape mismatch in assumed-length dummy argument character array Date: Mon, 27 Jul 2020 19:03:05 +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: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2020 19:03:05 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96320 --- Comment #13 from Dominique d'Humieres --- With the attached patch I get several ICEs: (lldb) run /opt/gcc/work/gcc/testsuite/gfortran.dg/asan/pointer_assign_16.f= 90 Process 88073 launched: '/opt/gcc/gcc11w/libexec/gcc/x86_64-apple-darwin19.5.0/11.0.0/f951' (x86_64) Process 88073 stopped * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D EXC_BAD_ACC= ESS (code=3D1, address=3D0x58) frame #0: 0x000000010004f9e7 f951`gfc_check_dummy_characteristics(s1=3D0x00000001453175e0, s2=3D0x00000001453175e0, type_must_agree=3D, errmsg=3D"\b\x02?= ??, err_len=3D200) at interface.c:1469:7 1466 int i, compval; 1467 gfc_expr *shape1, *shape2; 1468=20 -> 1469 if (s1->ns->proc_name->attr.module_procedure 1470 && s1->as->type =3D=3D AS_ASSUMED_SHAPE 1471 && s2->as->type =3D=3D AS_DEFERRED) 1472 {=