http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53333
--- Comment #4 from Fernando Pelliccioni <fpelliccioni at gmail dot com> 2012-05-12 20:59:58 UTC --- For other features of C++11 don't need -pedantic-errors to emit an error. See.. #include <string> void foo( std::string && str ) {} int main( /* int argc, char* argv[] */ ) { foo( "k0" ); return 0; } #g++ -std=c++03 gcc_warning.cpp gcc_warning.cpp:3:23: error: expected ',' or '...' before '&&' token It doesn't seem consistent. What is the criteria?