public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94843] New: if i use pch and specify '-include' twice compilation fails
@ 2020-04-29  6:54 m+gccbugs at gshep dot ru
  2020-04-29  6:58 ` [Bug c++/94843] " m+gccbugs at gshep dot ru
  2020-04-29  7:20 ` [Bug pch/94843] " rguenth at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: m+gccbugs at gshep dot ru @ 2020-04-29  6:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94843
           Summary: if i use pch and specify '-include' twice compilation
                    fails
           Product: gcc
           Version: 9.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: m+gccbugs at gshep dot ru
  Target Milestone: ---

Hi!

The following commands give "cc1plus fatal error ./empty.h No such file or
directory ; compilation terminated."

=========================================

mkdir 111
touch 111/empty.h
echo 'int main(){ return 0; }' > a.cpp
find
g++ -g -Winvalid-pch -x c++-header -o empty.h.gch -c 111/empty.h
g++ -I. -I111 -g -Winvalid-pch -include empty.h -include empty.h -o a.o -c
a.cpp

=========================================

We encountered this issue on our project except that we have 'include
"empty.h"' in cpp source file and one '-include' command line parameter.

Is this a bug or am I missing anything? Thanks in advance.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-29  7:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29  6:54 [Bug c++/94843] New: if i use pch and specify '-include' twice compilation fails m+gccbugs at gshep dot ru
2020-04-29  6:58 ` [Bug c++/94843] " m+gccbugs at gshep dot ru
2020-04-29  7:20 ` [Bug pch/94843] " rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).