diff options
author | Jason Merrill <jason@redhat.com> | 2020-01-31 21:59:48 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-02-03 09:21:06 -0500 |
commit | 3539fc1317267b30eb7c4ad48d52f4e46b3a198a (patch) | |
tree | 7bb9a2798fc1b9e3a94539e44b31f861b3f99194 /gcc/go | |
parent | 44f77a6dea2f312ee1743f3dde465c1b8453ee13 (diff) | |
download | gcc-3539fc1317267b30eb7c4ad48d52f4e46b3a198a.zip gcc-3539fc1317267b30eb7c4ad48d52f4e46b3a198a.tar.gz gcc-3539fc1317267b30eb7c4ad48d52f4e46b3a198a.tar.bz2 |
c++: Fix cast to pointer to VLA.
The C front-end fixed this issue in r257620 by adding a DECL_EXPR from
grokdeclarator. We don't have an easy way to do that in the C++ front-end,
but it works fine to create and prepend a DECL_EXPR when we are genericizing
the NOP_EXPR for the cast.
The C patch wraps the DECL_EXPR in a BIND_EXPR, but that seems unnecessary
in C++; this is just a hook to run gimplify_type_sizes, we aren't actually
declaring anything that we need to worry about scoping for.
PR c++/88256
* cp-gimplify.c (predeclare_vla): New.
(cp_genericize_r) [NOP_EXPR]: Call it.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions