From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0ACC73858C5F; Sat, 4 Feb 2023 04:08:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0ACC73858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675483706; bh=3uJRamXE3tBmYltTGOm32veaRmIP7LU786Ol+/7QS3U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PKahNMupH8ueRcx+jQVYMhUaEXWUlDNzUlFcGKOlT9tqVQ848uHqTQyZntOJ0KsHj HYJFLgW+qz0MsOimF90vIpb5G8kR9/YrAlTc0SpGb0sDKhKesLqypbkwNsytji5rOM NIpZel+ks4P21vzOOlZXXt5KAqqfGon8VQIOfCNc= From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107721] Lost typespec with constant expressions using array constructors and parentheses Date: Sat, 04 Feb 2023 04:08:25 +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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jvdelisle 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=3D107721 --- Comment #6 from Jerry DeLisle --- I had to go back in the Standard to deepen my understanding. Yes simplifyi= ng it would help. I think what we need to do is acknowledge that we should ma= tch '(' and if found, recursively call the gfc_match_array_constructor and check for the closing ')' on the other end of it.=