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 lto/78472] warning: type of 's' does not match original declaration from zero length bitfield in C vs C++


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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Nov 23 11:24:55 2016
New Revision: 242746

URL: https://gcc.gnu.org/viewcvs?rev=242746&root=gcc&view=rev
Log:
2016-11-23  Richard Biener  <rguenther@suse.de>

        PR lto/78472
        * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
        fields.

        lto/
        * lto.c (hash_canonical_type): Ignore zero-sized fields.

        * g++.dg/lto/pr78472_0.c: New testcase.
        * g++.dg/lto/pr78472_1.C: Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/lto/pr78472_0.c
    trunk/gcc/testsuite/g++.dg/lto/pr78472_1.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lto/ChangeLog
    trunk/gcc/lto/lto.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c

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