This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/26492] -Wstrict-aliasing=2 warns about explicitly allowed cast to pointer to union.
- From: "bartoldeman at users dot sourceforge dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Feb 2006 01:27:46 -0000
- Subject: [Bug c/26492] -Wstrict-aliasing=2 warns about explicitly allowed cast to pointer to union.
- References: <bug-26492-6019@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from bartoldeman at users dot sourceforge dot net 2006-02-28 01:27 -------
I am sorry about not being clear: I did read the documentation.
With
"Although the documentation does not say it must trigger, ..."
I meant:
"Although the documentation does not say that if the warning is given then
strict aliasing is actually done, ...".
which is why I filed this as an "enhancement" bug.
I hope this case is not ambiguous, as the documentation may claim it to be.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26492