Skip to content

Commit 4d8475d

Browse files
jensmaurerzygoloid
authored andcommitted
[over.literal] Mark uses of a reserved identifier
with 'ill-formed, no diagnostic required'. Also mark grammar terms as appropriate.
1 parent ab4f873 commit 4d8475d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

source/overloading.tex

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4271,9 +4271,11 @@
42714271
string operator "" _i18n(const char*, std::size_t); // OK
42724272
template <char...> double operator "" _\u03C0(); // OK: UCN for lowercase pi
42734273
float operator ""_e(const char*); // OK
4274-
float operator ""E(const char*); // error: reserved literal suffix~(\ref{usrlit.suffix}, \ref{lex.ext})
4275-
double operator""_Bq(long double); // OK: does not use the reserved identifier \tcode{_Bq}\iref{lex.name}
4276-
double operator"" _Bq(long double); // uses the reserved identifier \tcode{_Bq}\iref{lex.name}
4274+
float operator ""E(const char*); // ill-formed, no diagnostic required:
4275+
// reserved literal suffix~(\ref{usrlit.suffix}, \ref{lex.ext})
4276+
double operator""_Bq(long double); // OK: does not use the reserved \grammarterm{identifier} \tcode{_Bq}\iref{lex.name}
4277+
double operator"" _Bq(long double); // ill-formed, no diagnostic required:
4278+
// uses the reserved \grammarterm{identifier} \tcode{_Bq}\iref{lex.name}
42774279
float operator " " B(const char*); // error: non-empty \grammarterm{string-literal}
42784280
string operator "" 5X(const char*, std::size_t); // error: invalid literal suffix identifier
42794281
double operator "" _miles(double); // error: invalid \grammarterm{parameter-declaration-clause}

0 commit comments

Comments
 (0)