[Bug c++/53333] Initializer lists in std=c++03 mode must be an error
fpelliccioni at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat May 12 21:27:00 GMT 2012
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?
More information about the Gcc-bugs
mailing list