https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19541

Miroslav Matějů <melebius at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |melebius at gmail dot com,
                   |                            |pinskia at gcc dot gnu.org

--- Comment #24 from Miroslav Matějů <melebius at gmail dot com> ---
I can confirm the bug is still present in GCC 4.8.2 and 4.9.1. It affects my
workflow in the following way: I need to include stub header files instead of
the original ones (which can reside in the same directory as the compiled
source file) for the purpose of unit-testing. So I need GCC to consider some
include directories before the current directory (which I provide as an include
directory later anyway). The -I- option can do the job, -iquote absolutely not.

I found other affected users when searching for the solution on StackOverflow:
*
http://stackoverflow.com/questions/12353429/prevent-gcc-from-searching-the-current-dir-i-option-on-include-search-path
*
http://stackoverflow.com/questions/3162510/how-to-make-gcc-search-for-headers-in-a-directory-before-the-current-source-file

Please fix this issue by either undeprecating the -I- option or introducing the
-ignore-source-dir option as proposed in
https://gcc.gnu.org/ml/gcc-patches/2006-03/msg01197.html.

Reply via email to