public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely@redhat.com>
To: "Dominique d'Humières" <dominiq@lps.ens.fr>
Cc: ville.voutilainen@gmail.com,
	gcc-patches <gcc-patches@gcc.gnu.org>,
	       libstdc++@gcc.gnu.org
Subject: Re: [v3 PATCH] LWG 2510, make the default constructors of library tag types explicit.
Date: Wed, 11 Nov 2015 17:30:00 -0000	[thread overview]
Message-ID: <20151111173006.GP2937@redhat.com> (raw)
In-Reply-To: <50707C06-EB02-4B6B-A84C-40204207C07B@lps.ens.fr>

[-- Attachment #1: Type: text/plain, Size: 2088 bytes --]

On 11/11/15 18:17 +0100, Dominique d'Humières wrote:
>Revision r230175
>
>> 2015-11-10  Ville Voutilainen  <ville.voutilainen@gmail.com>
>>
>>     LWG 2510, make the default constructors of library tag types
>>     explicit.
>>     * include/bits/mutex.h (defer_lock_t, try_lock_t,
>>     adopt_lock_t): Add an explicit default constructor.
>>     * include/bits/stl_pair.h (piecewise_construct_t): Likewise.
>>     * include/bits/uses_allocator.h (allocator_arg_t): Likewise.
>>     * libsupc++/new (nothrow_t): Likewise.
>>     * testsuite/17_intro/tag_type_explicit_ctor.cc: New.
>
> breaks bootstrap
>
>libtool: compile:  /opt/gcc/build_w/./gcc/xgcc -shared-libgcc -B/opt/gcc/build_w/./gcc -nostdinc++ -L/opt/gcc/build_w/x86_64-apple-darwin14.5.0/libstdc++-v3/src -L/opt/gcc/build_w/x86_64-apple-darwin14.5.0/libstdc++-v3/src/.libs -L/opt/gcc/build_w/x86_64-apple-darwin14.5.0/libstdc++-v3/libsupc++/.libs -B/opt/gcc/gcc6w/x86_64-apple-darwin14.5.0/bin/ -B/opt/gcc/gcc6w/x86_64-apple-darwin14.5.0/lib/ -isystem /opt/gcc/gcc6w/x86_64-apple-darwin14.5.0/include -isystem /opt/gcc/gcc6w/x86_64-apple-darwin14.5.0/sys-include -I/opt/gcc/work/libstdc++-v3/../libgcc -I/opt/gcc/build_w/x86_64-apple-darwin14.5.0/libstdc++-v3/include/x86_64-apple-darwin14.5.0 -I/opt/gcc/build_w/x86_64-apple-darwin14.5.0/libstdc++-v3/include -I/opt/gcc/work/libstdc++-v3/libsupc++ -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -fdiagnostics-show-location=once -fvisibility-inlines-hidden -ffunction-sections -fdata-sections -frandom-seed=new_handler.lo -g -O2 -std=gnu++11 -c ../../../../work/libstdc++-v3/libsupc++/new_handler.cc  -fno-common -DPIC -D_GLIBCXX_SHARED -o new_handler.o
>../../../../work/libstdc++-v3/libsupc++/new_handler.cc:37:39: error: converting to 'std::nothrow_t' from initializer list would use explicit constructor 'constexpr std::nothrow_t::nothrow_t()'
> const std::nothrow_t std::nothrow = { };
>                                       ^
>see https://gcc.gnu.org/ml/gcc-regression/2015-11/

Fixed by this patch.


[-- Attachment #2: patch.txt --]
[-- Type: text/x-patch, Size: 590 bytes --]

commit 97c2da9d4cc11bd5dae077ccb5fda4e72f7c34d5
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Nov 11 17:27:23 2015 +0000

    	* libsupc++/new_handler.cc: Fix for explicit constructor change.

diff --git a/libstdc++-v3/libsupc++/new_handler.cc b/libstdc++-v3/libsupc++/new_handler.cc
index a09012c..4da48b3 100644
--- a/libstdc++-v3/libsupc++/new_handler.cc
+++ b/libstdc++-v3/libsupc++/new_handler.cc
@@ -34,7 +34,7 @@ namespace
 }
 #endif
 
-const std::nothrow_t std::nothrow = { };
+const std::nothrow_t std::nothrow = std::nothrow_t{ };
 
 using std::new_handler;
 namespace

  reply	other threads:[~2015-11-11 17:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-11 17:18 Dominique d'Humières
2015-11-11 17:30 ` Jonathan Wakely [this message]
2015-11-12 14:23   ` Gerald Pfeifer
2015-11-12 14:27     ` Ville Voutilainen
2015-11-12 14:36     ` Jonathan Wakely
2015-11-12 16:13       ` Jonathan Wakely
2015-11-12 16:19         ` Gerald Pfeifer
  -- strict thread matches above, loose matches on Subject: below --
2015-11-10 20:01 Ville Voutilainen
2015-11-11 14:17 ` Jonathan Wakely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151111173006.GP2937@redhat.com \
    --to=jwakely@redhat.com \
    --cc=dominiq@lps.ens.fr \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=libstdc++@gcc.gnu.org \
    --cc=ville.voutilainen@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).