Skip to content

[compatibility] Add compatibility notices for pp-number #713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 8, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions source/compatibility.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1511,6 +1511,21 @@
string literal, as part of the implementation-defined mapping from physical
source file characters to the basic source character set.

\ref{lex.ppnumber}
\change \grammarterm{pp-number} can contain \tcode{p} \grammarterm{sign} and
\tcode{P} \grammarterm{sign}
\rationale Necessary to enable hexadecimal floating literals.
\effect
Valid \CppXIV code may fail to compile or produce different results in
this International Standard. Specifically, character sequences like \tcode{0p+0}
and \tcode{0e1_p+0} are three separate tokens each in \CppXIV, but one single token
in this International Standard.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Valid \CppXI code"...."in \CppXIV"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted, thanks! Fixed.


\begin{codeblock}
#define F(a) b ## a
int b0p = F(0p+0); // ill-formed; equivalent to ``\tcode{int b0p = b0p + 0;}\!'' in C++ 2014
\end{codeblock}

\rSec2[diff.cpp14.expr]{Clause \ref{expr}: expressions}

\ref{expr.post.incr}, \ref{expr.pre.incr}
Expand Down