diff options
author | Jason Merrill <jason@redhat.com> | 2025-07-31 14:23:10 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2025-07-31 14:23:10 -0400 |
commit | f6462f664725844faa97ae7e8690e4fedee65788 (patch) | |
tree | 31b7f8f6c8c867861ddcb540e6e9cbee40f3ce0f /gcc/testsuite/ada/acats-4/tests/c8/c87a05b.ada | |
parent | d3828e64a888866c39131fd9feab5d0ee2bd90cf (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
Here cxx_eval_vec_init_1 wants to recreate the default constructor call that
we previously built and threw away in build_vec_init_elt, but we aren't in
the same access context at this point. Since we already checked access,
let's just suppress access control here.
Redoing overload resolution at constant evaluation time is sketchy, but
should usually be fine for a default/copy constructor.
PR c++/120800
gcc/cp/ChangeLog:
* constexpr.cc (cxx_eval_vec_init_1): Suppress access control.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/constexpr-array30.C: New test.
Diffstat (limited to 'gcc/testsuite/ada/acats-4/tests/c8/c87a05b.ada')
0 files changed, 0 insertions, 0 deletions