This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: #include_next: wrong search order?


Hi Alexey,

>Therefore, it appears that the lines [5] and [6] are wrong:

It doesn't appear wrong to me.

When a #include is done (or the GCC behind-the-covers-don't-use-this-in-your-code #include_next), it pulls in the specified file as if embedded, then returns back to processing the first file. That's what I see in your y.c result.

FYI - you can see your system include path via "gcc -E -v y.c".

HTH,
--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]