Affected subclause: [dcl.spec]
Change: Remove
auto as a storage class specifier
. Effect on original feature: Valid C++ 2003 code that uses the keyword
auto as a storage class
specifier may be invalid in this International Standard
. In this International
Standard,
auto indicates that the type of a variable is to be deduced
from its initializer expression
. Affected subclause: [dcl.init.list]
Change: Narrowing restrictions in aggregate initializers
. Effect on original feature: Valid C++ 2003 code may fail to compile in this International Standard
. For
example, the following code is valid in C++ 2003 but invalid in this
International Standard because
double to
int is a narrowing
conversion:
int x[] = { 2.0 };