From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5806 invoked by alias); 30 Jun 2014 23:16:34 -0000 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 Received: (qmail 5716 invoked by uid 48); 30 Jun 2014 23:16:27 -0000 From: "david.d.kretzmer at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/51553] brace initialization and conversion operators Date: Mon, 30 Jun 2014 23:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: david.d.kretzmer at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg02489.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51553 david.d.kretzmer at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david.d.kretzmer at gmail dot com --- Comment #4 from david.d.kretzmer at gmail dot com --- 13.3.3.1 p4 [over.best.ics] [...] or when the initializer list has exactly one element and a conversion to some class X or reference to (possibly cv-qualified) X is considered for the first parameter of a constructor of X, or by 13.3.1.4, 13.3.1.5, or 13.3.1.6 in all cases, only standard conversion sequences and ellipsis conversion sequences are considered. If I understand this correctly then the behavior before gcc 4.7 was actually correct: only standard conversions are considered, conversion functions are not.