https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60437 Manuel López-Ibáñez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #1 from Manuel López-Ibáñez --- (In reply to Paul Pluzhnikov from comment #0) > Using current trunk > g++ (GCC) 4.9.0 20140305 (experimental) > > > g++ -c t.cc -std=c++11 > t.cc: In function 'void f()': > t.cc:10:8: error: no matching function for call to 'X::X( initializer list>)' > X x{1}; Could we also print something better than ? The linker prints: undefined reference to `X::X(std::initializer_list)' Changing the testcase slightly gives: test.C:12:8: error: no matching function for call to ‘X::X()’ X x{1}; ^ test.C:12:8: note: candidates are: test.C:7:3: note: X::X(std::initializer_list) X(std::initializer_list init); ^ test.C:7:3: note: no known conversion for argument 1 from ‘int’ to ‘std::initializer_list’ Is it really trying to convert to 'std::initializer_list' from 'int' or from 'std::initializer_list'? >From gcc-bugs-return-467189-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Nov 18 12:50:35 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2762 invoked by alias); 18 Nov 2014 12:50:35 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1904 invoked by uid 48); 18 Nov 2014 12:50:27 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/63843] [5 Regression] wrong code generation at -O1 and higher Date: Tue, 18 Nov 2014 12:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created 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-11/txt/msg01661.txt.bz2 Content-length: 571 https://gcc.gnu.org/bugzilla/show_bug.cgi?idc843 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- Created attachment 34019 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id4019&actioníit gcc5-pr63843.patch Untested fix.