https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80287
--- Comment #6 from Yvan Roux <yroux at gcc dot gnu.org> --- Hi, I got a small issue when testing the backport into the branch: g++.dg/lto/pr80287_0.C is not a suitable testcase for GCC 6 branch, since it uses c++17 class std:any which is not available in GCC 6. In the first place this bug was found when building libstdc++-v3/testsuite/20_util/any/assign/2.cc, but it is not related to std:any, I found it on my side in ceph package build, and the issue is exhibited when compiling this reduced testcase with -g: struct A { operator long() {} } __attribute__((__may_alias__)); struct { A ino; } a; char b = a.ino; So, I wonder what is the best way to handle that, adding this new testcase on trunk as g++.dg/pr80287.C and only backport this one into GCC 6, or avoid std:any usage into g++.dg/lto/pr80287_0.C ?