[Bug c++/72865] Adding __may_alias__ attribute triggers a compilation error

2016-08-10 Thread root at zta dot lk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72865 --- Comment #2 from Aleksej Lebedev --- Just tried it with gcc-6.0.0 under DragonflyBSD. It seems that the bug is fixed. $ uname -a DragonFly kl.zta.lk 4.4-RELEASE DragonFly v4.4.3.1.gf6df7-RELEASE #8: Thu Apr 21 17:59:21 CEST 2016 r...@kl.z

[Bug c++/72865] Adding __may_alias__ attribute triggers a compilation error

2016-08-10 Thread root at zta dot lk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72865 --- Comment #1 from Aleksej Lebedev --- Forgot to tell what platform I'm running this: $ uname -a Linux zhtw-pc 4.2.0-41-generic #48-Ubuntu SMP Fri Jun 24 11:28:43 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Exact version of the GCC: $ g++ --version

[Bug c++/72865] New: Adding __may_alias__ attribute triggers a compilation error

2016-08-10 Thread root at zta dot lk
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: root at zta dot lk Target Milestone: --- The following (correct) code triggers a compilation error when compiled with gcc. It does compiles under clang. Removing __attribute__((__may_alias__