https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71639
Bug ID: 71639 Summary: [5.2.0] c++11 list initializer and std::transform - error? Product: gcc Version: 5.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: frank67x at gmail dot com Target Milestone: --- i have a strange result, when i apply std::transform with std::back_inserter to a std::vector<int>, that was initialized with c++11 list initializer. main.cpp test program will be attached next. Output for me is: -------------------------------------- padps08 1249> ./test using push_back(): ================== 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 2, 4, 6, 8, 10, using initializer list: ======================= 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 2, 0, 6, 8, 10, -------------------------------------- i compiled this way: > g++ -o test main.cpp -std=c++11 I have the same problem with 5.4.0. best regards, Frank