From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26517 invoked by alias); 7 Oct 2008 10:45:47 -0000 Received: (qmail 26494 invoked by uid 22791); 7 Oct 2008 10:45:45 -0000 X-Spam-Check-By: sourceware.org Received: from wx-out-0506.google.com (HELO wx-out-0506.google.com) (66.249.82.231) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 07 Oct 2008 10:44:51 +0000 Received: by wx-out-0506.google.com with SMTP id t4so720514wxc.14 for ; Tue, 07 Oct 2008 03:44:48 -0700 (PDT) Received: by 10.151.48.15 with SMTP id a15mr328767ybk.125.1223376288915; Tue, 07 Oct 2008 03:44:48 -0700 (PDT) Received: from ?10.81.2.153? ([32.155.77.59]) by mx.google.com with ESMTPS id 28sm11045075qbw.11.2008.10.07.03.44.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 07 Oct 2008 03:44:48 -0700 (PDT) References: <20081007093112.4431.qmail@sourceware.org> Message-Id: From: Andrew Thomas Pinski To: "gcc-bugzilla@gcc.gnu.org" In-Reply-To: <20081007093112.4431.qmail@sourceware.org> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPhone Mail (5F136) Mime-Version: 1.0 (iPhone Mail 5F136) Subject: Re: [Bug c++/37762] Member variable of empty base optimized (EBO) class appears on wrong offset Date: Tue, 07 Oct 2008 10:45:00 -0000 Cc: "gcc-bugs@gcc.gnu.org" X-IsSubscribed: yes Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-10/txt/msg00475.txt.bz2 Iirc there are some pod vs non pod issues here dealing wit padding and the c++ standard and not even the abi. Sent from my iPhone On Oct 7, 2008, at 2:31 AM, "david dot rosenborg at pantor dot com" wrote: > > > ------- Comment #3 from david dot rosenborg at pantor dot com > 2008-10-07 09:31 ------- > Ah, no, I wasn't aware of that document. I just thought that gcc was > treating > the Good and Bad cases inconsitently. > > Now, in layman's terms, is the reason for the padding that no two > distinct > instances of Empty may share the same address? If that is the case, > it would > explain the padding and this is not a bug. > > Sorry, should have investigated more before hitting the commit button. > > /David > > > -- > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37762 >