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.

Reply via email to