Title
Hexadecimal floating-point literals vs user-defined literals
Status
c++11
Section
5.13.9 [lex.ext]
Submitter
Howard Hinnant

Created on 2011-01-28.00:00:00 last changed 123 months ago

Messages

Date: 2011-03-15.00:00:00

[Voted into the WP at the March, 2011 meeting as part of paper N3262.]

Date: 2022-03-27.20:51:22

5.10 [lex.name] paragraph 3 says,

In addition, some identifiers are reserved for use by C++ implementations and standard libraries (_N4140_.17.6.4.3.2 [global.names]) and shall not be used otherwise; no diagnostic is required.

There is no corresponding mention in 5.13.9 [lex.ext] of the restrictions on user-defined literal suffixes in 16.4.5.3.6 [usrlit.suffix]. Furthermore, considering the likelihood of adding hexadecimal floating-point literals, whose syntax overlaps that of user-defined literals except for that restriction, it would be a good idea to require a diagnostic for a violation of that rule.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: fdis -> c++11
2011-04-10 00:00:00adminsetmessages: + msg3286
2011-04-10 00:00:00adminsetstatus: open -> fdis
2011-01-28 00:00:00admincreate