[Bug c++/61382] New: parameter pack expansion unexpected order
pengujohn at xvlc dot de
gcc-bugzilla@gcc.gnu.org
Sun Jun 1 21:17:00 GMT 2014
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.
More information about the Gcc-bugs
mailing list