File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 1317
1317
\end {floattable }
1318
1318
1319
1319
\pnum
1320
- If an \grammarterm {integer-literal}
1320
+ Except for \grammarterm {integer-literal}{s} containing
1321
+ a \grammarterm {size-suffix},
1322
+ if the value of an \grammarterm {integer-literal}
1321
1323
cannot be represented by any type in its list and
1322
1324
an extended integer type\iref {basic.fundamental } can represent its value,
1323
1325
it may have that extended integer type.
1324
1326
If all of the types in the list for the \grammarterm {integer-literal}
1325
1327
are signed,
1326
- the extended integer type shall be signed.
1328
+ the extended integer type is signed.
1327
1329
If all of the types in the list for the \grammarterm {integer-literal}
1328
1330
are unsigned,
1329
- the extended integer type shall be unsigned.
1331
+ the extended integer type is unsigned.
1330
1332
If the list contains both signed and unsigned types,
1331
1333
the extended integer type may be signed or unsigned.
1332
- A program is ill-formed
1333
- if one of its translation units contains an \grammarterm {integer-literal}
1334
- that cannot be represented by any of the allowed types.
1334
+ If an \grammarterm {integer-literal}
1335
+ cannot be represented by any of the allowed types,
1336
+ the program is ill-formed.
1337
+ \begin {note }
1338
+ An \grammarterm {integer-literal} with a \tcode {z} or \tcode {Z} suffix
1339
+ is ill-formed if it cannot be represented by \tcode {std::size_t}.
1340
+ \end {note }
1335
1341
1336
1342
\rSec 2[lex.ccon]{Character literals}
1337
1343
You can’t perform that action at this time.
0 commit comments