aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.cc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2024-09-16 16:42:38 -0400
committerMarek Polacek <polacek@redhat.com>2024-09-17 11:27:39 -0400
commitdfe0d4389a3ce43179563a63046ad3e74d615a08 (patch)
treeb1b10c5fe40f3b4d505014e02acbfba75c933b09 /gcc/tree-ssa-phiopt.cc
parente311dd13a9adbc51d56971cba06e1ff15a4256d2 (diff)
downloadgcc-dfe0d4389a3ce43179563a63046ad3e74d615a08.zip
gcc-dfe0d4389a3ce43179563a63046ad3e74d615a08.tar.gz
gcc-dfe0d4389a3ce43179563a63046ad3e74d615a08.tar.bz2
c++: crash with anon VAR_DECL [PR116676]
r12-3495 added maybe_warn_about_constant_value which will crash if it gets a nameless VAR_DECL, which is what happens in this PR. We created this VAR_DECL in cp_parser_decomposition_declaration. PR c++/116676 gcc/cp/ChangeLog: * constexpr.cc (maybe_warn_about_constant_value): Check DECL_NAME. gcc/testsuite/ChangeLog: * g++.dg/cpp1z/constexpr-116676.C: New test. Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions