Implement P0969
authorVille Voutilainen <ville.voutilainen@gmail.com>
Thu, 5 Apr 2018 14:43:55 +0000 (17:43 +0300)
committerVille Voutilainen <ville@gcc.gnu.org>
Thu, 5 Apr 2018 14:43:55 +0000 (17:43 +0300)
commit9aee04a4c032b075d07bdde6f8bd22b06d709f42
tree562daa37ae4c3d95dbc0c2f235be8ce4c59101c0
parent0fb90182d8698bf65774f25431567cd70be25faf
Implement P0969

gcc/cp

Implement P0969
* decl.c (find_decomp_class_base): Check accessibility instead
of declared access, adjust diagnostic.

testsuite/

Implement P0969
* g++.dg/cpp1z/decomp4.C: Adjust.
* g++.dg/cpp1z/decomp38.C: New.

From-SVN: r259129
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/cpp1z/decomp38.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/decomp4.C