Title
Insufficient specification of __has_include
Status
open
Section
15.2 [cpp.cond]
Submitter
Hubert Tong

Created on 2015-10-24.00:00:00 last changed 111 months ago

Messages

Date: 2022-02-18.07:47:23

The following example ought to be well-formed, but the standard is insufficiently clear:

  #define X <ciso646> )

  #if __has_include( X && ( defined(X) )
  #endif

Also, there is insufficient prohibition for the formation of __has_include by token pasting when performing macro replacement for the controlling expression of a conditional inclusion.

History
Date User Action Args
2015-10-24 00:00:00admincreate