[Bug c++/81917] [6/7/8 Regression] internal compiler error: in finish_member_declaration, at cp/semantics.c:3004

2018-02-09 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81917

--- Comment #6 from Jason Merrill  ---
Author: jason
Date: Fri Feb  9 21:01:49 2018
New Revision: 257542

URL: https://gcc.gnu.org/viewcvs?rev=257542=gcc=rev
Log:
PR c++/81917 - ICE with void_t and partial specialization.

* pt.c (instantiate_class_template_1): Set TYPE_BEING_DEFINED before
calling most_specialized_partial_spec.

Added:
trunk/gcc/testsuite/g++.dg/cpp0x/alias-decl-62.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/g++.dg/cpp0x/initlist-template2.C
trunk/gcc/testsuite/g++.dg/template/crash125.C
trunk/gcc/testsuite/g++.dg/template/pr51488.C
trunk/gcc/testsuite/g++.dg/template/pr55843.C

[Bug c++/81917] [6/7/8 Regression] internal compiler error: in finish_member_declaration, at cp/semantics.c:3004

2018-02-09 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81917

Jason Merrill  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |jason at gcc dot gnu.org

[Bug c++/81917] [6/7/8 Regression] internal compiler error: in finish_member_declaration, at cp/semantics.c:3004

2018-02-05 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81917

--- Comment #5 from Paolo Carlini  ---
This variant causes the same ICE and it's a tad cleaner:

template  using a = void;
template  struct b
{
  typedef int c;
}; template  class b;
template ::c> class f;
template  class g { };
template  class h
{
  class i;
  typedef g j; class i
  {
j k;
  };
}; typename h::

[Bug c++/81917] [6/7/8 Regression] internal compiler error: in finish_member_declaration, at cp/semantics.c:3004

2018-01-10 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81917

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug c++/81917] [6/7/8 Regression] internal compiler error: in finish_member_declaration, at cp/semantics.c:3004

2018-01-01 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81917

Jakub Jelinek  changed:

   What|Removed |Added

   Target Milestone|--- |6.5
Summary|internal compiler error: in |[6/7/8 Regression] internal
   |finish_member_declaration,  |compiler error: in
   |at cp/semantics.c:3004  |finish_member_declaration,
   ||at cp/semantics.c:3004