From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4F54B3858C50; Tue, 1 Nov 2022 20:34:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F54B3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667334856; bh=58utAp/DCEyDHTbf+Rfemb72+uT5gyCEU7naNAgz8Ng=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MBCrS6ouLUKxBp9L0eS8J7tZep7iw0MvZ5GmxZcIlHcPatXCzvpAtPDMg4Y2fTuD/ iT14IrXlfQrNSA3TWgLxuXmC7B3VExwvIz9lRtyQnEIdRz59fc+DfY9HACsDiAqrw8 OQ05BRTxibKXjY//xxNqHHq9vVthQ3HOiBYM+3bk= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107444] ICE on character, value, optional dummy argument Date: Tue, 01 Nov 2022 20:34:15 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107444 --- Comment #1 from anlauf at gcc dot gnu.org --- It appears that there is also confusion about the procedure decl. This is demonstrated by: program p call s() call s('') ! Actual argument is too short, reject? call s('a') call s('ab') contains subroutine s (c) character, value, optional :: c end subroutine s end The dump tree shows: void s (character(kind=3D1)[1:1] c, integer(kind=3D8) _c) [...] void p () { static void s (character(kind=3D1)[1:1], integer(kind=3D8)); s (0B, 0); s ("", 1, 0); s ("a", 1, 1); s ("ab", 1, 2);=