From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32385 invoked by alias); 13 May 2014 12:57:24 -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 31655 invoked by uid 48); 13 May 2014 12:57:03 -0000 From: "tobi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61172] New: C++11: ICE with invalid call to template class Date: Tue, 13 May 2014 12:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: tobi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: 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-05/txt/msg01143.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61172 Bug ID: 61172 Summary: C++11: ICE with invalid call to template class Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tobi at gcc dot gnu.org I'm seeing this bug with all g++-4.7 I have access to. There seems to be no duplicate in bugzilla, even though there are a few similar bugs they are fixed in 4.7.0 the latest. Even if this is fixed in trunk (I cannot check this right now), adding a testcase may be sensible: $ cat t.cc #include struct foobar { int a; }; int main(){ std::vector foo; //Should fail: foobar has no constructor with one argument foo.emplace_back(0); } $ g++ t.cc t.cc: In function 'int main()': t.cc:10:9: error: 'class std::vector' has no member named 'emplace_back' $ g++ --std=c++11 t.cc ' Internal compiler error: Error reporting routines re-entered. Please submit a full bug report, with preprocessed source if appropriate. See for instructions. tobi@tobias-schluters-computer tmp$