public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/106759] New: __has_builtin doesn't report __is_nothrow_constructible as supported
@ 2022-08-26 20:38 nikolasklauser at berlin dot de
  2022-08-26 21:03 ` [Bug c++/106759] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: nikolasklauser at berlin dot de @ 2022-08-26 20:38 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106759
           Summary: __has_builtin doesn't report
                    __is_nothrow_constructible as supported
           Product: gcc
           Version: 12.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nikolasklauser at berlin dot de
  Target Milestone: ---

__has_builtin normally reports if builtin type traits are supported, but
__has_builtin(__is_nothrow_constructible) is false.

Reproducer: (Godbolt: https://godbolt.org/z/T6d7M6jx7)

#if __has_builtin(__is_nothrow_constructible)
#  error "has builtin" // should error here, but doesn't
#endif

int main() { return __is_nothrow_constructible(int); }

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

end of thread, other threads:[~2022-08-30 14:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-26 20:38 [Bug c++/106759] New: __has_builtin doesn't report __is_nothrow_constructible as supported nikolasklauser at berlin dot de
2022-08-26 21:03 ` [Bug c++/106759] " pinskia at gcc dot gnu.org
2022-08-26 21:59 ` mpolacek at gcc dot gnu.org
2022-08-26 22:13 ` pinskia at gcc dot gnu.org
2022-08-26 22:16 ` mpolacek at gcc dot gnu.org
2022-08-30 13:07 ` cvs-commit at gcc dot gnu.org
2022-08-30 14:05 ` cvs-commit at gcc dot gnu.org
2022-08-30 14:06 ` mpolacek 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).