From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13711 invoked by alias); 16 Oct 2013 03:54:42 -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 13686 invoked by uid 48); 16 Oct 2013 03:54:38 -0000 From: "ghartshaw at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58743] New: [C++11] parameter packs not expanded with '...' Date: Wed, 16 Oct 2013 03:54: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.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ghartshaw at gmail dot com 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 attachments.created 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: 2013-10/txt/msg00938.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58743 Bug ID: 58743 Summary: [C++11] parameter packs not expanded with '...' Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ghartshaw at gmail dot com Created attachment 31015 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31015&action=edit Compiliation error messages. The following test case gives an "parameter packs not expanded with '...'" error where it should not: $ cat error_example.cpp struct tensor { constexpr tensor( int value ) : _value( value ) {} template constexpr int value() const { return _value; } private: int _value; }; template struct printer { static int get( T const & tensor ) { return detail<>::get( tensor ); } private: template struct detail { static int get( T const & tensor ) { return tensor.value(); } }; }; int main() { printer::get( tensor(1) ); } $ g++-4.9 --version g++-4.9 (GCC) 4.9.0 20131015 (experimental) $ g++-4.9 -std=c++11 -Wall -Wextra error_example.cpp -save-temps -v 2>output.txt