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 c++/61004] [4.10 Regression] Spurious warning: dereferencing type-punned pointer


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

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Jun  5 12:42:29 2014
New Revision: 211272

URL: http://gcc.gnu.org/viewcvs?rev=211272&root=gcc&view=rev
Log:
2014-06-05  Richard Biener  <rguenther@suse.de>

    PR c++/61004
    * typeck.c (cp_build_indirect_ref): Do not emit strict-aliasing
    warnings for accessing empty classes.

    * g++.dg/diagnostic/pr61004.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/diagnostic/pr61004.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


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