This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-11-11


2190. Insufficient specification of __has_include

Section: 15.2  [cpp.cond]     Status: open     Submitter: Hubert Tong     Date: 2015-10-24

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.