Issue 134510
Summary __has_include should not error if unevaluated
Labels new issue
Assignees
Reporter kyuupichan
    If /tmp/unreadable.cpp is unreadable (e.g. because chmod a-r) then clang gives a fatal error on this conditional.  GCC gets this right and is silent only because the __has_include is unevaluated.

#if 0 && __has_include("/tmp/unreadable.cpp")
#endif


_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to