#include
pointing to directory is treated as existing empty file
#343
Labels
#include
pointing to directory is treated as existing empty file
#343
If an include points to an existing directory (e.g.
#include </>
) the code will not raise an error. I would expect it to reportEXPLICIT_INCLUDE_NOT_FOUND
.This is caused by using
std::ifstream::is_open()
to determine the existence of a file. But if you do this on a directory it will be successful as well as the subsequent read. It will not read anything though so it behaves like an empty file.The text was updated successfully, but these errors were encountered: