public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/110226] New: GCC ignores include of non-existent header
@ 2023-06-12 13:52 jpegqs at gmail dot com
2023-06-12 14:26 ` [Bug c++/110226] " redi at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: jpegqs at gmail dot com @ 2023-06-12 13:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110226
Bug ID: 110226
Summary: GCC ignores include of non-existent header
Product: gcc
Version: 13.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jpegqs at gmail dot com
Target Milestone: ---
Try compiling this code with g++:
#if __has_include("quadmath123.h")
#endif
#include <quadmath123.h>
You shouldn't have "quadmath123.h", but GCC will compile this without error.
Reproduced in every version of GCC since __has_include was supported (GCC
4.9.2).
Occurs in Boost headers when <quadmath.h> is not installed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/110226] GCC ignores include of non-existent header
2023-06-12 13:52 [Bug c++/110226] New: GCC ignores include of non-existent header jpegqs at gmail dot com
@ 2023-06-12 14:26 ` redi at gcc dot gnu.org
2023-06-12 17:14 ` [Bug preprocessor/110226] __has_include on a header causes GCC to ignore an non-existent header afterwards pinskia at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2023-06-12 14:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110226
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
Last reconfirmed| |2023-06-12
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug preprocessor/110226] __has_include on a header causes GCC to ignore an non-existent header afterwards
2023-06-12 13:52 [Bug c++/110226] New: GCC ignores include of non-existent header jpegqs at gmail dot com
2023-06-12 14:26 ` [Bug c++/110226] " redi at gcc dot gnu.org
@ 2023-06-12 17:14 ` pinskia at gcc dot gnu.org
2023-06-12 17:15 ` pinskia at gcc dot gnu.org
2023-08-01 10:43 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-06-12 17:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110226
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |preprocessor
Depends on| |80753
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I suspect it is a dup of bug 80753.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80753
[Bug 80753] __has_include and __has_include_next taints subsequent I/O errors
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug preprocessor/110226] __has_include on a header causes GCC to ignore an non-existent header afterwards
2023-06-12 13:52 [Bug c++/110226] New: GCC ignores include of non-existent header jpegqs at gmail dot com
2023-06-12 14:26 ` [Bug c++/110226] " redi at gcc dot gnu.org
2023-06-12 17:14 ` [Bug preprocessor/110226] __has_include on a header causes GCC to ignore an non-existent header afterwards pinskia at gcc dot gnu.org
@ 2023-06-12 17:15 ` pinskia at gcc dot gnu.org
2023-08-01 10:43 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-06-12 17:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110226
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Actually it is a dup of bug 80753.
*** This bug has been marked as a duplicate of bug 80753 ***
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug preprocessor/110226] __has_include on a header causes GCC to ignore an non-existent header afterwards
2023-06-12 13:52 [Bug c++/110226] New: GCC ignores include of non-existent header jpegqs at gmail dot com
` (2 preceding siblings ...)
2023-06-12 17:15 ` pinskia at gcc dot gnu.org
@ 2023-08-01 10:43 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-08-01 10:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110226
Bug 110226 depends on bug 80753, which changed state.
Bug 80753 Summary: __has_include and __has_include_next taints subsequent I/O errors
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80753
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-08-01 10:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-12 13:52 [Bug c++/110226] New: GCC ignores include of non-existent header jpegqs at gmail dot com
2023-06-12 14:26 ` [Bug c++/110226] " redi at gcc dot gnu.org
2023-06-12 17:14 ` [Bug preprocessor/110226] __has_include on a header causes GCC to ignore an non-existent header afterwards pinskia at gcc dot gnu.org
2023-06-12 17:15 ` pinskia at gcc dot gnu.org
2023-08-01 10:43 ` jakub 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).