From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E7058385DC0D; Mon, 13 Apr 2020 17:19:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E7058385DC0D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586798396; bh=W9YVvGpjoGHY/EuHxkqOOvay6P6OsMiWEfVTz+AwA+M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jmga1f8M1Atn5FjdfFKRA/e3UCHwD7Aj5ii/SbttOGzL+MoawwJIzDPghkq+Eoyp/ AWWRNNfEu0vA906LosgD+suJSGCTaj+ysvbbDjiLsK/xiEc/2FRsa03oIGv5vWmARv LtASOBbJDi/hjQdmxmZTsO4DxvMTuV1JejXTLcHU= From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/94110] Erroneous code compiling Date: Mon, 13 Apr 2020 17:19:56 +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.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: WAITING 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: everconfirmed bug_status cc cf_reconfirmed_on 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, 13 Apr 2020 17:19:57 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94110 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |WAITING CC| |tkoenig at gcc dot gnu.org Last reconfirmed| |2020-04-13 --- Comment #1 from Thomas Koenig --- (In reply to Jos=C3=A9 Rui Faustino de Sousa from comment #0) > Created attachment 48000 [details] > Code demonstrating problems. >=20 > Hi all! >=20 > I am pretty sure this code is erroneous both because you can not pass an > assumed-size to an assumed-shape This is entirely possible and normal practice, and is often done by normal code. (I am, however, willing to be corrected). > and because of pointer association rules. Which rules? Can you specify what the standard says about this case? (If it is a numbered constraint, then a compiler is required to diagnose it. If it is something like "shall" or "shall not", then it is up to the programmer to get this right; a good implementation might catch the error, but it is not required to do so).=