mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
When using -fsearch-include-path, we prepend the result of search_path_head to the provided filenames, which for non-absolute paths will return "./". At this point, stdin is represented by the empty string, and so prepending "./" confuses 'open_file'. This patch fixes the issue by treating stdin as-if it were an absolute path. PR c++/119756 libcpp/ChangeLog: * files.cc (search_path_head): Also treat empty string (stdin) as an absolute path. Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com> Reviewed-by: Jason Merrill <jason@redhat.com>
81 KiB
81 KiB