From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18200 invoked by alias); 15 Dec 2011 18:04:15 -0000 Received: (qmail 18183 invoked by uid 22791); 15 Dec 2011 18:04:13 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-gx0-f175.google.com (HELO mail-gx0-f175.google.com) (209.85.161.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Dec 2011 18:03:46 +0000 Received: by ggnh1 with SMTP id h1so2178334ggn.20 for ; Thu, 15 Dec 2011 10:03:45 -0800 (PST) Received: by 10.182.152.65 with SMTP id uw1mr2273331obb.10.1323972225412; Thu, 15 Dec 2011 10:03:45 -0800 (PST) Received: by 10.182.152.65 with SMTP id uw1mr2273324obb.10.1323972225300; Thu, 15 Dec 2011 10:03:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.111.6 with HTTP; Thu, 15 Dec 2011 10:03:24 -0800 (PST) In-Reply-To: References: <59662D5BB74CD84D9FA8E6491ADB51A7DEAE4E3D@US01WXMBX1.internal.synopsys.com> <20111010222528.GB29806@synopsys.com> From: Jeffrey Yasskin Date: Thu, 15 Dec 2011 18:04:00 -0000 Message-ID: Subject: Re: Long-term plan for C++98/C++11 incompatibility To: Gabriel Dos Reis Cc: gcc@gcc.gnu.org X-System-Of-Record: true Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-12/txt/msg00231.txt.bz2 On Mon, Oct 10, 2011 at 5:07 PM, Gabriel Dos Reis wrote: > On Mon, Oct 10, 2011 at 5:25 PM, Joe Buck wrote: >> On Fri, Oct 07, 2011 at 07:35:17PM -0700, Gabriel Dos Reis wrote: >>> C++11 is essentially binary incompatible with C++98. >> >> Only partially. =A0The layout for user-defined classes is the same, and > > PODness has changed from C++98. Sorry for digging this up months later, but this caught my eye. I've heard several people strongly claim that the core ABI didn't change, and here you seem to be contradicting them. Can you give a concrete example of a user-defined class that doesn't use any standard library features but changes layout between C++98 and C++11 when compiled with gcc? Thanks, Jeffrey