https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67445
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2017-09-28 CC| |egallager at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> --- Testcase needs: #include <initializer_list> or else it errors with: $ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 67445.cc 67445.cc:1:6: error: ‘initializer_list’ in namespace ‘std’ does not name a template type std::initializer_list<int> f() { ^~~~~~~~~~~~~~~~ $ but after adding that include, I can confirm that there are no warnings for the example.