From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17250 invoked by alias); 1 Sep 2016 18:33:54 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 17237 invoked by uid 89); 1 Sep 2016 18:33:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=H*r:112, Hx-languages-length:913 X-HELO: simark.ca Received: from simark.ca (HELO simark.ca) (158.69.221.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 01 Sep 2016 18:33:52 +0000 Received: by simark.ca (Postfix, from userid 112) id F19951E819; Thu, 1 Sep 2016 14:33:50 -0400 (EDT) Received: from simark.ca (localhost [127.0.0.1]) by simark.ca (Postfix) with ESMTP id 4F5611E7D1; Thu, 1 Sep 2016 14:33:49 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 01 Sep 2016 18:33:00 -0000 From: Simon Marchi To: Pedro Alves Cc: gdb@sourceware.org Subject: Re: Go C++ only In-Reply-To: <5479c5a0-a346-1718-5573-eeb4b19bc9db@redhat.com> References: <212bc30a-e6ad-886b-0881-8206dd91b933@redhat.com> <410fa84696e520ca3845c841fc7391b8@simark.ca> <5479c5a0-a346-1718-5573-eeb4b19bc9db@redhat.com> Message-ID: <72276a8218ef0e667097dc3fb152c518@simark.ca> X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.2.0 X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00008.txt.bz2 On 2016-09-01 14:22, Pedro Alves wrote: > On 09/01/2016 07:07 PM, Simon Marchi wrote: > >> Are there some guidelines about which C++ features we can use or not? > > I think the biggest guideline so far is that people still want to build > gdb on systems with compilers that predate C++11, so we're stuck with > C++03 for the moment. > >> Perhaps some precisions about the coding style, for C++-specific >> constructs (e.g. initializer lists). > > List initialization is C++11, so it's out, at least for now. Oh, I meant the list of members to initialize in a constructor (the list after the colon), that's not C++11 I believe. I see it's all discussed in the gcc coding convention page. And to complete my answer on the original subject, I think it's fine to wait until 7.12 is out before checking in anything that is C++-only. The wait has been long already, a few weeks won't change much :).