From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4841 invoked by alias); 30 Apr 2013 16:36:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 4814 invoked by uid 48); 30 Apr 2013 16:35:59 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/57126] New: Wrongly rejects a generic call because it doesn't match the intrinsic while another specific matches Date: Tue, 30 Apr 2013 16:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg02444.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57126 Bug #: 57126 Summary: Wrongly rejects a generic call because it doesn't match the intrinsic while another specific matches Classification: Unclassified Product: gcc Version: 4.9.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: burnus@gcc.gnu.org Created attachment 29984 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D29984 Test case Reported by Roger Ferrer Ib=C3=A1=C3=B1ez at https://groups.google.com/forum/?fromgroups=3D#!topic/comp.lang.fortran/y31= DDXAXNAE The attached test case is accepted by NAG f95 (5.1) and by IBM XLF (12.1). = But gfortran rejects it with: Y =3D RENAME(M=3DY) 1 Error: Generic function 'size' at (1) is not consistent with a specific intrinsic interface X =3D RENAME(A=3DX) 1 Error: Generic function 'size' at (1) is not consistent with a specific intrinsic interface (Intel ifort 13.1.0 only rejects "X =3D RENAME(A=3DX)".) >>From gcc-bugs-return-421300-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Apr 30 16:39:41 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7977 invoked by alias); 30 Apr 2013 16:39:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 7922 invoked by uid 48); 30 Apr 2013 16:39:38 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/57117] [OOP] ICE for sourced allocation of a polymorphic entity using TRANSPOSE Date: Tue, 30 Apr 2013 16:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg02445.txt.bz2 Content-length: 478 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57117 --- Comment #3 from Dominique d'Humieres 2013-04-30 16:39:38 UTC --- Reduced test for RESHAPE: implicit none type :: ti end type class(ti), allocatable :: x(:,:), z(:) allocate(z(9), source=reshape(x, (/ 9 /))) end pr57117_2.f90:8:0: internal compiler error: in gfc_conv_procedure_call, at fortran/trans-expr.c:4902 allocate(z(9), source=reshape(x, (/ 9 /)))