This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug other/52609] -Wstrict-aliasing / missed diagnostics


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52609

Pawel Sikora <pawel_sikora at zoho dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |7.0

--- Comment #5 from Pawel Sikora <pawel_sikora at zoho dot com> ---
still missed diagnostics for bug2():

pr52609.c: In function ‘bug1’:
pr52609.c:6:9: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
         return *(float*)(&buffer[0]); // warning.
         ^~~~~~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]