Skip to content
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

Example in [over.literal] is incorrect #276

Closed
sdutoit opened this issue Feb 15, 2014 · 0 comments
Closed

Example in [over.literal] is incorrect #276

sdutoit opened this issue Feb 15, 2014 · 0 comments

Comments

@sdutoit
Copy link
Contributor

sdutoit commented Feb 15, 2014

The example says

float operator ""E(const char*);                    // OK, but reserved~(\ref{usrlit.suffix})

And this was an attempt at fixing NB comment CH-6. This isn't actually OK, because using reserved literal suffixes are explicitly forbidden as ill-formed, ndr.

zygoloid pushed a commit to zygoloid/cplusplus that referenced this issue May 1, 2014
…fixes.

Don't consider a reserved suffix as "OK, but reserved" since we say
in [lex.ext] that it's ill-formed to use one.

Include examples of literal suffixes that use/subtly-don't-use reserved
names according to [global.names].

Add a missing case: C language linkage.

Fixes cplusplus#276.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant