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/24255] [4.1 regression] __transparent_union__ mishandled



------- Comment #5 from cvs-commit at gcc dot gnu dot org  2005-10-11 22:52 -------
Subject: Bug 24255

CVSROOT:        /cvs/gcc
Module name:    gcc
Changes by:     rth@gcc.gnu.org 2005-10-11 22:52:04

Modified files:
        gcc            : ChangeLog c-typeck.c 
Added files:
        gcc/testsuite/gcc.dg: transparent-union-5.c 

Log message:
        PR c/24255
        * c-typeck.c (convert_for_assignment): Use build_constructor_single
        to initialize a transparent union instead of a nop_expr.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.10140&r2=2.10141
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&r1=1.481&r2=1.482
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/transparent-union-5.c.diff?cvsroot=gcc&r1=NONE&r2=1.1


-- 


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


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