This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30852] [4.1/4.2/4.3 regression] Trouble with __builtin_offsetof and volatile
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Mar 2007 07:36:27 -0000
- Subject: [Bug c++/30852] [4.1/4.2/4.3 regression] Trouble with __builtin_offsetof and volatile
- References: <bug-30852-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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