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/35748] ICE with cast to invalid union



------- Comment #2 from reichelt at gcc dot gnu dot org  2008-03-30 21:59 -------
Subject: Bug 35748

Author: reichelt
Date: Sun Mar 30 21:58:43 2008
New Revision: 133737

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133737
Log:
        PR c/35748
        * c-typeck.c (build_c_cast): Skip invalid fields in unions.

        * gcc.dg/union-cast-4.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/union-cast-4.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35748


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