public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/32138] New: /usr/include/sys/platform/x86.h _Bool is incompatible with C++
@ 2024-09-03 13:50 jan at jankratochvil dot net
2024-09-03 13:51 ` [Bug build/32138] " jan at jankratochvil dot net
2024-09-04 6:01 ` sam at gentoo dot org
0 siblings, 2 replies; 3+ messages in thread
From: jan at jankratochvil dot net @ 2024-09-03 13:50 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=32138
Bug ID: 32138
Summary: /usr/include/sys/platform/x86.h _Bool is incompatible
with C++
Product: glibc
Version: 2.39
Status: NEW
Severity: normal
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: jan at jankratochvil dot net
CC: carlos at redhat dot com
Target Milestone: ---
FAIL:
$ echo '#include <sys/platform/x86.h>'|clang++ -std=c++11 -c -x c++ -
In file included from <stdin>:1:
In file included from /usr/include/sys/platform/x86.h:25:
/usr/include/bits/platform/features.h:31:19: error: unknown type name '_Bool'
31 | static __inline__ _Bool
| ^
In file included from <stdin>:1:
/usr/include/sys/platform/x86.h:33:19: error: unknown type name '_Bool'
33 | static __inline__ _Bool
| ^
/usr/include/sys/platform/x86.h:46:19: error: unknown type name '_Bool'
46 | static __inline__ _Bool
| ^
3 errors generated.
PASS:
$ echo '#include <sys/platform/x86.h>'|g++ -std=c++11 -c -x c++ -
glibc-2.39-22.fc40.x86_64
clang-18.1.6-3.fc40.x86_64
gcc-14.2.1-1.fc40.x86_64
_Bool is a C type, not C++ type. There is a bug/workaround in GCC it defines
_Bool even in -std=c++. clang more correctly defines _Bool only in -std=gnu++
and not in -std=c++.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug build/32138] /usr/include/sys/platform/x86.h _Bool is incompatible with C++
2024-09-03 13:50 [Bug build/32138] New: /usr/include/sys/platform/x86.h _Bool is incompatible with C++ jan at jankratochvil dot net
@ 2024-09-03 13:51 ` jan at jankratochvil dot net
2024-09-04 6:01 ` sam at gentoo dot org
1 sibling, 0 replies; 3+ messages in thread
From: jan at jankratochvil dot net @ 2024-09-03 13:51 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=32138
Jan Kratochvil <jan at jankratochvil dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |x86_64-linux
CC| |jan at jankratochvil dot net
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug build/32138] /usr/include/sys/platform/x86.h _Bool is incompatible with C++
2024-09-03 13:50 [Bug build/32138] New: /usr/include/sys/platform/x86.h _Bool is incompatible with C++ jan at jankratochvil dot net
2024-09-03 13:51 ` [Bug build/32138] " jan at jankratochvil dot net
@ 2024-09-04 6:01 ` sam at gentoo dot org
1 sibling, 0 replies; 3+ messages in thread
From: sam at gentoo dot org @ 2024-09-04 6:01 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=32138
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sam at gentoo dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-04 6:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-03 13:50 [Bug build/32138] New: /usr/include/sys/platform/x86.h _Bool is incompatible with C++ jan at jankratochvil dot net
2024-09-03 13:51 ` [Bug build/32138] " jan at jankratochvil dot net
2024-09-04 6:01 ` sam at gentoo dot 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).