From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24563 invoked by alias); 1 Jun 2014 21:17:52 -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 24525 invoked by uid 48); 1 Jun 2014 21:17:45 -0000 From: "pengujohn at xvlc dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61382] New: parameter pack expansion unexpected order Date: Sun, 01 Jun 2014 21:17: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: pengujohn at xvlc dot de 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: 2014-06/txt/msg00020.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61382 Bug ID: 61382 Summary: parameter pack expansion unexpected order Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: pengujohn at xvlc dot de Created attachment 32882 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32882&action=edit small example that expands like 3,2,1,0 ... should be 0,1,2,3 C++11 variadic templated parameter pack expansion happens for {}-initialiser in reversed oder. As far as I understand this, they should be expanded in order. I am not sure if its expansion or evaluation thats out of order.... clang++ does the correct(?) ordering.