https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95193
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:4b68cb38ddca37a14a6f2f43de3a6d396ee1bc79 commit r11-838-g4b68cb38ddca37a14a6f2f43de3a6d396ee1bc79 Author: Jason Merrill <ja...@redhat.com> Date: Mon Jun 1 17:58:57 2020 -0400 c++: *this capture in const member fn [PR95193]. Here, the capture proxy for *this is const, but its DECL_VALUE_EXPR is not. Don't ICE on this; it's a reasonable difference, since in C++ an rvalue of scalar type does not have cv-qualifiers. gcc/cp/ChangeLog: PR c++/95193 * pt.c (tsubst_decl): Relax assert. gcc/testsuite/ChangeLog: PR c++/95193 * g++.dg/cpp1z/lambda-this7.C: New test.