[Bug c++/96132] [11 Regression] ICE in is_really_empty_class

2020-07-09 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96132

Patrick Palka  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #3 from Patrick Palka  ---
Fixed.

[Bug c++/96132] [11 Regression] ICE in is_really_empty_class

2020-07-09 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96132

--- Comment #2 from CVS Commits  ---
The master branch has been updated by Patrick Palka :

https://gcc.gnu.org/g:614662064ad4993a2aaecf190e7399ac5279e78e

commit r11-1971-g614662064ad4993a2aaecf190e7399ac5279e78e
Author: Patrick Palka 
Date:   Thu Jul 9 13:47:13 2020 -0400

c++: Partially revert fix for PR c++/95497 [PR96132]

I was mistaken to assume that a dependent type is necessarily
incomplete, and indeed there are multiple places in the frontend where
we check a type for both dependency and completeness.  So this patch
partially reverts the fix for PR95497, restoring the dependent_type_p
check that guarded the call to is_really_empty_class below.

gcc/cp/ChangeLog:

PR c++/96132
* constexpr.c (potential_constant_expression_1) :
Restore dependent_type_p check that guarded the call to
is_really_empty_class.

gcc/testsuite/ChangeLog:

PR c++/96132
* g++.dg/template/incomplete12.C: New test.

[Bug c++/96132] [11 Regression] ICE in is_really_empty_class

2020-07-09 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96132

Patrick Palka  changed:

   What|Removed |Added

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

[Bug c++/96132] [11 Regression] ICE in is_really_empty_class

2020-07-09 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96132

Richard Biener  changed:

   What|Removed |Added

Version|unknown |11.0
   Target Milestone|--- |11.0

[Bug c++/96132] [11 Regression] ICE in is_really_empty_class

2020-07-09 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96132

Martin Liška  changed:

   What|Removed |Added

 CC||marxin at gcc dot gnu.org,
   ||ppalka at gcc dot gnu.org
 Status|UNCONFIRMED |NEW
Summary|ice in  |[11 Regression] ICE in
   |is_really_empty_class   |is_really_empty_class
   Priority|P3  |P1
   Last reconfirmed||2020-07-09
 Ever confirmed|0   |1

--- Comment #1 from Martin Liška  ---
Started with r11-1947-g9eb7d0d76eb652caa9186766da4fe965f113b1b8.