Title
Lexing of <=>
Status
tentatively ready
Section
5.5 [lex.pptoken]
Submitter
Jay Ghiron

Created on 2026-05-30.00:00:00 last changed 2 weeks ago

Messages

Date: 2026-06-26.22:53:47

CWG 2026-06-26

The proposed resolution also addresses issue 3205.

Date: 2026-06-26.22:53:47

Proposed resolution (approved by CWG 2026-06-26):

Change in 5.5 [lex.pptoken] bullet 5.4.1 as follows:

  • ...
  • Otherwise, the next preprocessing token is the longest sequence of characters that could constitute a preprocessing token, even if that would cause further lexical analysis to fail, except that
    • a string-literal different kind of preprocessing token is never formed when a header-name preprocessing token can be formed, and
    • ...
Date: 2026-05-30.00:00:00

(From submission #910.)

Consider:

  #include <=>

Is this lexed as a header-name or a punctuator?

History
Date User Action Args
2026-06-26 22:53:47adminsetmessages: + msg8615
2026-06-26 22:53:47adminsetstatus: open -> tentatively ready
2026-05-31 22:13:10adminsetmessages: + msg8590
2026-05-30 00:00:00admincreate