This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/80652] [5 Regression] Union conversion between __m128d and double array does not work under 5.0 through 6.2
- From: "paboyle at ph dot ed.ac.uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 17 May 2017 05:59:25 +0000
- Subject: [Bug tree-optimization/80652] [5 Regression] Union conversion between __m128d and double array does not work under 5.0 through 6.2
- Auto-submitted: auto-generated
- References: <bug-80652-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80652
--- Comment #6 from Peter Boyle <paboyle at ph dot ed.ac.uk> ---
Just a comment -- suggest a warning thrown if union access from
two views is made. AFAIK g++ is the only compiler not implementing the
defacto type pun use.
http://en.cppreference.com/w/cpp/language/union
"Many compilers implement, as a non-standard language extension, the ability to
read inactive members of a union."
i.e. warn on attempted use of the above behaviour.