public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/115497] New: __is_pointer doesn't compile with clang since 014879ea4c86b3b8ab6b61a1226ee5b31e816c8b
@ 2024-06-14 20:21 mital at mitalashok dot co.uk
  2024-06-14 20:33 ` [Bug libstdc++/115497] " pinskia at gcc dot gnu.org
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: mital at mitalashok dot co.uk @ 2024-06-14 20:21 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 115497
           Summary: __is_pointer doesn't compile with clang since
                    014879ea4c86b3b8ab6b61a1226ee5b31e816c8b
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mital at mitalashok dot co.uk
  Target Milestone: ---

In libstdc++-v3/include/bits/cpp_type_traits.h, `__is_pointer` is both used as
a unary type trait and the name of a template struct. After it is a struct
template's name, Clang no longer parses it as a builtin and `inline constexpr
bool is_pointer_v = __is_pointer(_Tp);` in libstdc++-v3/include/std/type_traits
fails to compile.

This only happens if cpp_type_traits.h is included before type_traits, which
unfortunately happens with this program: https://godbolt.org/z/afbvddddK

    #include <vector>

(Please advise if you think this is a Clang bug, how libstdc++ expects these
type trait names to be parsed)

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

end of thread, other threads:[~2024-06-21 16:13 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-14 20:21 [Bug libstdc++/115497] New: __is_pointer doesn't compile with clang since 014879ea4c86b3b8ab6b61a1226ee5b31e816c8b mital at mitalashok dot co.uk
2024-06-14 20:33 ` [Bug libstdc++/115497] " pinskia at gcc dot gnu.org
2024-06-14 20:38 ` pinskia at gcc dot gnu.org
2024-06-14 20:44 ` pinskia at gcc dot gnu.org
2024-06-14 20:56 ` mital at mitalashok dot co.uk
2024-06-14 20:57 ` redi at gcc dot gnu.org
2024-06-14 20:58 ` redi at gcc dot gnu.org
2024-06-14 21:33 ` [Bug libstdc++/115497] [15 Regression] " pinskia at gcc dot gnu.org
2024-06-15 11:53 ` redi at gcc dot gnu.org
2024-06-15 12:58 ` arthur.j.odwyer at gmail dot com
2024-06-15 16:56 ` redi at gcc dot gnu.org
2024-06-15 16:57 ` redi at gcc dot gnu.org
2024-06-15 16:59 ` redi at gcc dot gnu.org
2024-06-15 18:23 ` pinskia at gcc dot gnu.org
2024-06-18 20:00 ` richard-gccbugzilla at metafoo dot co.uk
2024-06-18 20:15 ` redi at gcc dot gnu.org
2024-06-18 23:00 ` richard-gccbugzilla at metafoo dot co.uk
2024-06-20 15:40 ` redi at gcc dot gnu.org
2024-06-21  9:31 ` redi at gcc dot gnu.org
2024-06-21 16:07 ` cvs-commit at gcc dot gnu.org
2024-06-21 16:07 ` cvs-commit at gcc dot gnu.org
2024-06-21 16:07 ` cvs-commit at gcc dot gnu.org
2024-06-21 16:07 ` cvs-commit at gcc dot gnu.org
2024-06-21 16:07 ` cvs-commit at gcc dot gnu.org
2024-06-21 16:13 ` redi 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).