[Bug c++/84767] [6 Regression] ICE with pointer to VLA

2018-06-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84767

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #9 from Jakub Jelinek  ---
Fixed for 6.5 too.

[Bug c++/84767] [6 Regression] ICE with pointer to VLA

2018-06-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84767

--- Comment #8 from Jakub Jelinek  ---
Author: jakub
Date: Mon Jun 25 17:29:17 2018
New Revision: 262072

URL: https://gcc.gnu.org/viewcvs?rev=262072&root=gcc&view=rev
Log:
Backported from mainline
2018-03-09  Jakub Jelinek  

PR c++/84767
* tree-inline.c (copy_tree_body_r): For INDIRECT_REF of a remapped
decl, use remap_type if we want to use the type.

* g++.dg/ext/vla18.C: New test.

Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/ext/vla18.C
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/testsuite/ChangeLog
branches/gcc-6-branch/gcc/tree-inline.c

[Bug c++/84767] [6 Regression] ICE with pointer to VLA

2018-06-24 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84767

Volker Reichelt  changed:

   What|Removed |Added

Summary|[6/7 Regression] ICE with   |[6 Regression] ICE with
   |pointer to VLA  |pointer to VLA

--- Comment #7 from Volker Reichelt  ---
Fixed for GCC 7.4