This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/53333] Initializer lists in std=c++03 mode must be an error


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]