From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22676 invoked by alias); 8 Jan 2014 20:09:37 -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 22636 invoked by uid 48); 8 Jan 2014 20:09:31 -0000 From: "octoploid at yandex dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59730] New: ICE: in type_dependent_expression_p, at cp/pt.c:19969 Date: Wed, 08 Jan 2014 20:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: octoploid at yandex dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: 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-SW-Source: 2014-01/txt/msg00837.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59730 Bug ID: 59730 Summary: ICE: in type_dependent_expression_p, at cp/pt.c:19969 Product: gcc Version: 4.8.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: octoploid at yandex dot com markus@x4 /tmp % cat test.ii template void declval(); template void forward(); template class D; template class D <_Functor(_Bound_args...)> { template )> void operator()(...) { 0(forward<_Args>...); } }; markus@x4 /tmp % /usr/x86_64-pc-linux-gnu/gcc-bin/4.8.3/g++ -std=3Dc++11 -O= 0 -c test.ii test.ii: In member function =E2=80=98void D<_Functor(_Bound_args ...)>::operator()(...)=E2=80=99: test.ii:8:24: internal compiler error: in type_dependent_expression_p, at cp/pt.c:19969 0(forward<_Args>...); ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. markus@x4 /tmp % /usr/x86_64-pc-linux-gnu/gcc-bin/4.7.3/g++ -std=3Dc++11 -O= 0 -c test.ii test.ii: In member function =E2=80=98void D<_Functor(_Bound_args ...)>::operator()(...)=E2=80=99: test.ii:8:24: internal compiler error: in type_dependent_expression_p, at cp/pt.c:19496 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. markus@x4 /tmp % /usr/x86_64-pc-linux-gnu/gcc-bin/4.9.0/g++ -std=3Dc++11 -O= 0 -c test.ii markus@x4 /tmp % >>From gcc-bugs-return-439696-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jan 08 20:38:30 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6386 invoked by alias); 8 Jan 2014 20:38:29 -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 6355 invoked by uid 48); 8 Jan 2014 20:38:24 -0000 From: "anlauf at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/59720] [OOP] class/extends, multiple generic assignment Date: Wed, 08 Jan 2014 20:38: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-Version: 4.8.1 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gmx dot de X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: janus 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: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg00838.txt.bz2 Content-length: 1244 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59720 --- Comment #9 from Harald Anlauf --- (In reply to janus from comment #8) > (In reply to Harald Anlauf from comment #7) > > Thanks for checking, Harald. So XLF and NAG agree with gfortran on comment > 6. That's the easy part (since the interpretation of these cases is > explicitly given in the standard). Apparently ifort and pgfortran are buggy > in this area. > > Could you also check what XLF and NAG report on comment 1 (which is a > somewhat more questionable case)? Here we go: % xlf2008 pr59720.f90 ** kleiner === End of Compilation 1 === "pr59720.f90", line 42.44: 1514-699 (S) Procedure "ass_gf" must have a nonoptional dummy argument that corresponds by position in the argument list to a dummy argument not present in procedure "ass_en", present and type incompatible, present with different kind type parameters, or present with a different rank. % nagfor pr59720.f90 NAG Fortran Compiler Release 5.3.2(951) Error: pr59720.f90, line 65: Ambiguous specific type-bound procedures ASSIGN2 and ASSIGN for type-bound generic ASSIGNMENT(=) in type MYTYPE Errors in declarations, no further processing for GROSSER Apparently both agree with gfortran ;-)