backport: re PR c++/80287 (C++ crash with __attribute((may_alias)))

2017-08-22  Yvan Roux  <yvan.roux@linaro.org>

	Backport from mainline
	2017-08-22  Yvan Roux  <yvan.roux@linaro.org>

        PR c++/80287
        * g++.dg/pr80287.C: New test.

From-SVN: r251273
This commit is contained in:
Yvan Roux 2017-08-22 10:51:52 +00:00 committed by Yvan Roux
parent 4525932d39
commit ae34027b9a
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2017-08-22 Yvan Roux <yvan.roux@linaro.org>
Backport from mainline
2017-08-22 Yvan Roux <yvan.roux@linaro.org>
PR c++/80287
* g++.dg/pr80287.C: New test.
2017-08-20 John David Anglin <danglin@gcc.gnu.org>
PR ipa/77732

View File

@ -0,0 +1,13 @@
// PR c++/80287
// { dg-do compile { target c++11 } }
// { dg-options "-g" }
struct A {
operator long() {}
} __attribute__((__may_alias__));
struct {
A ino;
} a;
char b = a.ino;