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:
parent
4525932d39
commit
ae34027b9a
|
@ -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
|
||||
|
|
|
@ -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;
|
Loading…
Reference in New Issue