public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/107104] New: semantics of __builtin_constant_p within static_assert and return value
@ 2022-09-30 16:43 me at inclyc dot cn
  2022-10-03 14:48 ` [Bug c++/107104] " h2+bugs at fsfe dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: me at inclyc dot cn @ 2022-09-30 16:43 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107104
           Summary: semantics of __builtin_constant_p within static_assert
                    and return value
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: me at inclyc dot cn
  Target Milestone: ---

https://godbolt.org/z/oz4e7bobT
https://godbolt.org/z/hE6x9G49q

illustrate different occasions about this issue. 

Consider passing the same operand __builtin_constant_p in static assertions and
return value, expression with in static assertion passed, but the same
expression evaluates to 0 as the return value.

Are there some different scopes / contexts that causes different result?

Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91158
Link: https://github.com/llvm/llvm-project/issues/58078

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

end of thread, other threads:[~2022-11-12 12:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-30 16:43 [Bug c++/107104] New: semantics of __builtin_constant_p within static_assert and return value me at inclyc dot cn
2022-10-03 14:48 ` [Bug c++/107104] " h2+bugs at fsfe dot org
2022-10-03 14:54 ` redi at gcc dot gnu.org
2022-11-12 12:04 ` yann at droneaud dot fr

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).