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

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 9 19:13:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84767

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Mar  9 19:12:29 2018
New Revision: 258395

URL: https://gcc.gnu.org/viewcvs?rev=258395&root=gcc&view=rev
Log:
        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:
    trunk/gcc/testsuite/g++.dg/ext/vla18.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-inline.c


More information about the Gcc-bugs mailing list