diff options
author | Jason Merrill <jason@redhat.com> | 2020-02-25 13:37:18 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-02-25 23:35:46 -0500 |
commit | 2b6565dd2d07d3f2f706795f800d0cc2ff8f2f68 (patch) | |
tree | c7beebbae329aa51a2cad4dc9c35533e6ee73619 /gcc/cp/ChangeLog | |
parent | b9bfe25d3a7f925754df3a557e3b1743d21d0c4d (diff) | |
download | gcc-2b6565dd2d07d3f2f706795f800d0cc2ff8f2f68.zip gcc-2b6565dd2d07d3f2f706795f800d0cc2ff8f2f68.tar.gz gcc-2b6565dd2d07d3f2f706795f800d0cc2ff8f2f68.tar.bz2 |
PR c++/89831 - error with qualified-id in const member function.
Since the fix for 15272 we were remembering the wrong function to use at
instantiation time, because the type of the SCOPE_REF didn't reflect the
cv-quals of 'this'. Conveniently, we can fix this by simplifying the code.
gcc/cp/ChangeLog
2020-02-25 Jason Merrill <jason@redhat.com>
PR c++/89831 - error with qualified-id in const member function.
* semantics.c (finish_non_static_data_member): Use object cv-quals
in scoped case, too.
Diffstat (limited to 'gcc/cp/ChangeLog')
-rw-r--r-- | gcc/cp/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4deaca6..f963baa 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,11 @@ 2020-02-25 Jason Merrill <jason@redhat.com> + PR c++/89831 - error with qualified-id in const member function. + * semantics.c (finish_non_static_data_member): Use object cv-quals + in scoped case, too. + +2020-02-25 Jason Merrill <jason@redhat.com> + PR c++/88380 - wrong-code with flexible array and NSDMI. * typeck2.c (process_init_constructor_record): Skip flexarrays. |