From: Yvan Roux Date: Tue, 22 Aug 2017 09:32:38 +0000 (+0000) Subject: re PR c++/80287 (C++ crash with __attribute((may_alias))) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44d23deb477b55b753c0a1c5e2df683f94330f0d;p=gcc.git re PR c++/80287 (C++ crash with __attribute((may_alias))) 2017-08-22 Yvan Roux PR c++/80287 * g++.dg/pr80287.C: New test. From-SVN: r251268 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b449d5a7f79..17733519e0b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-08-22 Yvan Roux + + PR c++/80287 + * g++.dg/pr80287.C: New test. + 2017-08-22 Richard Biener Revert diff --git a/gcc/testsuite/g++.dg/pr80287.C b/gcc/testsuite/g++.dg/pr80287.C new file mode 100644 index 00000000000..da8d3fab150 --- /dev/null +++ b/gcc/testsuite/g++.dg/pr80287.C @@ -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;