public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59730] New: ICE: in type_dependent_expression_p, at cp/pt.c:19969
@ 2014-01-08 20:09 octoploid at yandex dot com
  2014-01-08 21:11 ` [Bug c++/59730] " jakub at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: octoploid at yandex dot com @ 2014-01-08 20:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59730

            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 <typename> void declval();
template <typename> void forward();
template <typename> class D;
template <typename _Functor, typename... _Bound_args>
class D <_Functor(_Bound_args...)> {
  template <typename... _Args, decltype(declval<_Functor>)>
  void operator()(...) {
    0(forward<_Args>...);
  }
};

markus@x4 /tmp % /usr/x86_64-pc-linux-gnu/gcc-bin/4.8.3/g++ -std=c++11 -O0 -c
test.ii
test.ii: In member function ‘void D<_Functor(_Bound_args
...)>::operator()(...)’:
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 <http://gcc.gnu.org/bugs.html> for instructions.

markus@x4 /tmp % /usr/x86_64-pc-linux-gnu/gcc-bin/4.7.3/g++ -std=c++11 -O0 -c
test.ii
test.ii: In member function ‘void D<_Functor(_Bound_args
...)>::operator()(...)’:
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 <http://gcc.gnu.org/bugs.html> for instructions.

markus@x4 /tmp % /usr/x86_64-pc-linux-gnu/gcc-bin/4.9.0/g++ -std=c++11 -O0 -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: <gcc-bugs-return-439696-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
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" <gcc-bugzilla@gcc.gnu.org>
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: <bug-59720-4-sUB4ufBHbx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59720-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59720-4@http.gcc.gnu.org/bugzilla/>
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?idY720

--- Comment #9 from Harald Anlauf <anlauf at gmx dot de> ---
(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 ;-)


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/59730] ICE: in type_dependent_expression_p, at cp/pt.c:19969
  2014-01-08 20:09 [Bug c++/59730] New: ICE: in type_dependent_expression_p, at cp/pt.c:19969 octoploid at yandex dot com
@ 2014-01-08 21:11 ` jakub at gcc dot gnu.org
  2014-01-08 22:43 ` paolo.carlini at oracle dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-08 21:11 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59730

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-01-08
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org,
                   |                            |paolo at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This got fixed on the trunk with r203229 aka PR56060.  Now, if this code is
valid, perhaps it might make sense to backport it.

Paolo/Jason?


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/59730] ICE: in type_dependent_expression_p, at cp/pt.c:19969
  2014-01-08 20:09 [Bug c++/59730] New: ICE: in type_dependent_expression_p, at cp/pt.c:19969 octoploid at yandex dot com
  2014-01-08 21:11 ` [Bug c++/59730] " jakub at gcc dot gnu.org
@ 2014-01-08 22:43 ` paolo.carlini at oracle dot com
  2014-01-09 17:46 ` paolo at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-01-08 22:43 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59730

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Sure, if Jason agrees, I can do it.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/59730] ICE: in type_dependent_expression_p, at cp/pt.c:19969
  2014-01-08 20:09 [Bug c++/59730] New: ICE: in type_dependent_expression_p, at cp/pt.c:19969 octoploid at yandex dot com
  2014-01-08 21:11 ` [Bug c++/59730] " jakub at gcc dot gnu.org
  2014-01-08 22:43 ` paolo.carlini at oracle dot com
@ 2014-01-09 17:46 ` paolo at gcc dot gnu.org
  2014-01-09 17:46 ` paolo.carlini at oracle dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu.org @ 2014-01-09 17:46 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59730

--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Thu Jan  9 17:45:55 2014
New Revision: 206473

URL: http://gcc.gnu.org/viewcvs?rev=206473&root=gcc&view=rev
Log:
2014-01-09  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/59730
    * g++.dg/cpp0x/variadic145.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/variadic145.C
Modified:
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/59730] ICE: in type_dependent_expression_p, at cp/pt.c:19969
  2014-01-08 20:09 [Bug c++/59730] New: ICE: in type_dependent_expression_p, at cp/pt.c:19969 octoploid at yandex dot com
                   ` (2 preceding siblings ...)
  2014-01-09 17:46 ` paolo at gcc dot gnu.org
@ 2014-01-09 17:46 ` paolo.carlini at oracle dot com
  2014-01-10 16:17 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-01-09 17:46 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59730

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Testcase added to mainline.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/59730] ICE: in type_dependent_expression_p, at cp/pt.c:19969
  2014-01-08 20:09 [Bug c++/59730] New: ICE: in type_dependent_expression_p, at cp/pt.c:19969 octoploid at yandex dot com
                   ` (3 preceding siblings ...)
  2014-01-09 17:46 ` paolo.carlini at oracle dot com
@ 2014-01-10 16:17 ` jason at gcc dot gnu.org
  2014-01-10 18:46 ` paolo at gcc dot gnu.org
  2014-01-10 18:48 ` paolo.carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2014-01-10 16:17 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59730

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Backporting makes sense to me.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/59730] ICE: in type_dependent_expression_p, at cp/pt.c:19969
  2014-01-08 20:09 [Bug c++/59730] New: ICE: in type_dependent_expression_p, at cp/pt.c:19969 octoploid at yandex dot com
                   ` (4 preceding siblings ...)
  2014-01-10 16:17 ` jason at gcc dot gnu.org
@ 2014-01-10 18:46 ` paolo at gcc dot gnu.org
  2014-01-10 18:48 ` paolo.carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu.org @ 2014-01-10 18:46 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59730

--- Comment #6 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Jan 10 18:45:53 2014
New Revision: 206536

URL: http://gcc.gnu.org/viewcvs?rev=206536&root=gcc&view=rev
Log:
/cp
2014-01-10  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/56060
    PR c++/59730
    * pt.c (type_dependent_expression_p): Handle EXPR_PACK_EXPANSION.

/testsuite
2014-01-10  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/56060
    PR c++/59730
    * g++.dg/cpp0x/variadic144.C: New.
    * g++.dg/cpp0x/variadic145.C: Likewise.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/g++.dg/cpp0x/variadic144.C
    branches/gcc-4_8-branch/gcc/testsuite/g++.dg/cpp0x/variadic145.C
Modified:
    branches/gcc-4_8-branch/gcc/cp/ChangeLog
    branches/gcc-4_8-branch/gcc/cp/pt.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/59730] ICE: in type_dependent_expression_p, at cp/pt.c:19969
  2014-01-08 20:09 [Bug c++/59730] New: ICE: in type_dependent_expression_p, at cp/pt.c:19969 octoploid at yandex dot com
                   ` (5 preceding siblings ...)
  2014-01-10 18:46 ` paolo at gcc dot gnu.org
@ 2014-01-10 18:48 ` paolo.carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-01-10 18:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59730

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.8.3

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed for 4.8.3.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-01-10 18:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-08 20:09 [Bug c++/59730] New: ICE: in type_dependent_expression_p, at cp/pt.c:19969 octoploid at yandex dot com
2014-01-08 21:11 ` [Bug c++/59730] " jakub at gcc dot gnu.org
2014-01-08 22:43 ` paolo.carlini at oracle dot com
2014-01-09 17:46 ` paolo at gcc dot gnu.org
2014-01-09 17:46 ` paolo.carlini at oracle dot com
2014-01-10 16:17 ` jason at gcc dot gnu.org
2014-01-10 18:46 ` paolo at gcc dot gnu.org
2014-01-10 18:48 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).