c++: Fix access checks for __is_assignable and __is_constructible
authorVille Voutilainen <ville.voutilainen@gmail.com>
Tue, 17 Mar 2020 14:38:25 +0000 (16:38 +0200)
committerVille Voutilainen <ville.voutilainen@gmail.com>
Tue, 17 Mar 2020 15:03:18 +0000 (17:03 +0200)
commit887085be635101ae1fa16be8dcdbbe6b240b600b
tree97237c5675d93b4dcaa46e66a46aa1d463f32e77
parent4be8cf77026b6cdcf9ab9cff6e70a75ea4bfaded
c++: Fix access checks for __is_assignable and __is_constructible

gcc/

PR c++/94197
* cp/method.c (assignable_expr): Use cp_unevaluated.
(is_xible_helper): Push a non-deferred access check for
the stub objects created by assignable_expr and constructible_expr.

testsuite/

PR c++/94197
* g++.dg/ext/pr94197.C: New.
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/testsuite/g++.dg/ext/pr94197.C [new file with mode: 0644]