re PR c++/91606 (Optimization leads to invalid code)
authorRichard Biener <rguenther@suse.de>
Wed, 2 Oct 2019 10:54:10 +0000 (10:54 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 2 Oct 2019 10:54:10 +0000 (10:54 +0000)
commitfc1a202ca60def4894f2deeda8ae184527ee897e
tree5d7cea1fdfcc3291fa32eb81f23a31f9f7618fc6
parentba045eb2297e8e51c7e99c2b2650f32cb642d209
re PR c++/91606 (Optimization leads to invalid code)

2019-10-02  Richard Biener  <rguenther@suse.de>

PR c++/91606
* decl.c (build_ptrmemfunc_type): Mark pointer-to-member
fat pointer structure members as DECL_NONADDRESSABLE_P.

* g++.dg/torture/pr91606.C: New testcase.

From-SVN: r276448
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr91606.C [new file with mode: 0644]