[Bug c++/84445] [7/8 Regression] ICE with __builtin_launder and virtual function

2018-02-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84445

--- Comment #3 from Jakub Jelinek  ---
Author: jakub
Date: Tue Feb 20 08:22:31 2018
New Revision: 257840

URL: https://gcc.gnu.org/viewcvs?rev=257840&root=gcc&view=rev
Log:
PR c++/84445
* class.c (fixed_type_or_null) : Only test
TREE_HAS_CONSTRUCTOR if instance is not an internal function call.

* g++.dg/cpp1z/launder7.C: New test.

Added:
trunk/gcc/testsuite/g++.dg/cpp1z/launder7.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/testsuite/ChangeLog

[Bug c++/84445] [7/8 Regression] ICE with __builtin_launder and virtual function

2018-02-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84445

Jakub Jelinek  changed:

   What|Removed |Added

   Priority|P3  |P2
   Target Milestone|--- |7.4

[Bug c++/84445] [7/8 Regression] ICE with __builtin_launder and virtual function

2018-02-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84445

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #2 from Jakub Jelinek  ---
Created attachment 43460
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43460&action=edit
gcc8-pr84445.patch

Untested fix.

[Bug c++/84445] [7/8 Regression] ICE with __builtin_launder and virtual function

2018-02-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84445

Martin Sebor  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-02-18
 CC||msebor at gcc dot gnu.org
Summary|ICE with __builtin_launder  |[7/8 Regression] ICE with
   |and virtual function|__builtin_launder and
   ||virtual function
 Ever confirmed|0   |1

--- Comment #1 from Martin Sebor  ---
Confirmed.  Bisection points to somewhere between r242708 and r242710.