This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53333] Initializer lists in std=c++03 mode must be an error
- From: "fpelliccioni at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 12 May 2012 20:59:58 +0000
- Subject: [Bug c++/53333] Initializer lists in std=c++03 mode must be an error
- Auto-submitted: auto-generated
- References: <bug-53333-4@http.gcc.gnu.org/bugzilla/>
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?