[Bug c++/30852] [4.1/4.2/4.3 regression] Trouble with __builtin_offsetof and volatile

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Mar 8 07:36:00 GMT 2007



------- Comment #2 from reichelt at gcc dot gnu dot org  2007-03-08 07:36 -------
Subject: Bug 30852

Author: reichelt
Date: Thu Mar  8 07:36:17 2007
New Revision: 122687

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122687
Log:
        PR c++/30852
        * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.

        * semantics.c (finish_offsetof): Handle COMPOUND_EXPR.

        * g++.dg/ext/offsetof1.C: Add cases with volatile.

Modified:
    branches/gcc-4_2-branch/gcc/ChangeLog
    branches/gcc-4_2-branch/gcc/c-common.c
    branches/gcc-4_2-branch/gcc/cp/ChangeLog
    branches/gcc-4_2-branch/gcc/cp/semantics.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/ext/offsetof1.C


-- 


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



More information about the Gcc-bugs mailing list