aboutsummaryrefslogtreecommitdiff
path: root/gcc/mode-switching.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2018-03-21 13:09:09 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2018-03-21 13:09:09 +0000
commit2a80d3ae14f6f823e28637fd28b5808a6e4aa5ba (patch)
tree86d55601cfd0c25ca63798a94855f2a8ef645709 /gcc/mode-switching.c
parent8bb406a2916060d123a97974072ceb74ac9c92cc (diff)
downloadgcc-2a80d3ae14f6f823e28637fd28b5808a6e4aa5ba.zip
gcc-2a80d3ae14f6f823e28637fd28b5808a6e4aa5ba.tar.gz
gcc-2a80d3ae14f6f823e28637fd28b5808a6e4aa5ba.tar.bz2
C++: show private field accessor hints for const accesses (PR c++/84892)
gcc/cp/ChangeLog: PR c++/84892 * search.c (field_accessor_p): Use class_of_this_parm rather than type_of_this_parm, to check that "this" is a "const T *", rather than a "T *const". gcc/testsuite/ChangeLog: PR c++/84892 * g++.dg/other/accessor-fixits-1.C (test_access_const_t1_color): New. (test_deref_const_t1_color): New. * g++.dg/other/accessor-fixits-5.C: New testcase. From-SVN: r258716
Diffstat (limited to 'gcc/mode-switching.c')
0 files changed, 0 insertions, 0 deletions