From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7C121386EC5E; Thu, 18 Mar 2021 20:25:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C121386EC5E From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/99651] Cannot change attributes of USE-associated intrinsic Date: Thu, 18 Mar 2021 20:25:40 +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.2.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW 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 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: Thu, 18 Mar 2021 20:25:40 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99651 --- Comment #3 from Tobias Burnus --- The obvious idea to do: if (sym->attr.flavor =3D=3D FL_UNKNOWN || sym->attr.flavor =3D=3D FL_PROC= EDURE) in gfc_intrinsic_func_interface works, but has the side effect that for print *, allocated(f) ('f' is a function) of gfortran.dg/allocatable_scalar_11.f90 the error is generated by resolve_generic_f's m =3D gfc_intrinsic_func_interface (expr, 0); ... if (m =3D=3D MATCH_NO) gfc_error ("Generic function %qs at %L is not consistent with a " "specific intrinsic interface", expr->symtree->n.sym->name, Without that 'obvious' patch, the error is generated by the call to check_specific (specific, expr, 0) also within gfc_intrinsic_func_interface.=