[Bug c++/91933] [8/9/10/11 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in build_simple_base_path, at cp/class.c:541
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 13 12:26:46 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91933
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:0851ac6df0596df1e3b640e58094cf94ebb790b8
commit r11-8151-g0851ac6df0596df1e3b640e58094cf94ebb790b8
Author: Jason Merrill <jason@redhat.com>
Date: Mon Apr 12 17:43:51 2021 -0400
c++: constexpr, inheritance, and local class [PR91933]
Here we complained about referring to nm3 from the local class member
function because referring to the base class subobject involved taking the
variable's address. Let's shortcut this case to avoid that.
gcc/cp/ChangeLog:
PR c++/91933
* class.c (build_base_path): Shortcut simple non-pointer case.
gcc/testsuite/ChangeLog:
PR c++/91933
* g++.dg/cpp0x/constexpr-base7.C: New test.
More information about the Gcc-bugs
mailing list