Skip to content
Snippets Groups Projects
Commit 711f56ad authored by Torbjörn SVENSSON's avatar Torbjörn SVENSSON
Browse files

libcpp/remap: Only override if string matched


For systems with HAVE_DOS_BASED_FILE_SYSTEM set, only override the
pointer if the backslash pattern matches.

Output without this patch:
.../gcc/testsuite/gcc.dg/cpp/pr71681-2.c:5:10: fatal error: a/t2.h: No such file or directory

With patch applied, no output and the test case succeeds.

libcpp/ChangeLog

	* files.cc: Ensure pattern matches before use.

Signed-off-by: default avatarTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
parent ccb9c7b1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment