https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97702
--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- T5 in that list is an lvalue, so it seems right not to drop qualifiers there.
joseph at codesourcery dot com via Gcc-bugs Tue, 03 Nov 2020 14:02:58 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97702
--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- T5 in that list is an lvalue, so it seems right not to drop qualifiers there.