[Bug libstdc++/88066] [7/8 Regression] Relative includes in bits/locale_conv.h should be prefixed
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Feb 9 00:41:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88066
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Sat Feb 9 00:40:31 2019
New Revision: 268714
URL: https://gcc.gnu.org/viewcvs?rev=268714&root=gcc&view=rev
Log:
PR libstdc++/88066 use <> for includes not ""
Using #include "..." to include a header in the same directory fails if
the user compiles with -I-, so always use something like <bits/...> for
internal headers.
I haven't added tests for this, because dg-options adds options to the
end, and the position of -I- matters (if it's at the end then the tests
won't find any headers in the build tree, as they're specified by -I
options earlier in the flags). It's been manually tested though.
PR libstdc++/88066
* include/bits/locale_conv.h: Use <> for includes not "".
* include/ext/random: Likewise.
* include/ext/vstring.h: Likewise.
Modified:
branches/gcc-8-branch/libstdc++-v3/ChangeLog
branches/gcc-8-branch/libstdc++-v3/include/bits/locale_conv.h
branches/gcc-8-branch/libstdc++-v3/include/ext/random
branches/gcc-8-branch/libstdc++-v3/include/ext/vstring.h
More information about the Gcc-bugs
mailing list