public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99859] New: constexpr evaluation with member function is incorrect
@ 2021-03-31 22:54 ldalessandro at gmail dot com
  2021-03-31 23:15 ` [Bug c++/99859] " ldalessandro at gmail dot com
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: ldalessandro at gmail dot com @ 2021-03-31 22:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99859
           Summary: constexpr evaluation with member function is incorrect
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ldalessandro at gmail dot com
  Target Milestone: ---

I'm at a loss for how to describe this.

I have an intrusive reference counting smart pointer that manipulates the
pointed-to object's `count_` member either explicitly or via a member function.
The explicit version works fine, the member function does not (both are fine in
clang).

See the difference with -DUSE_DEC in https://godbolt.org/z/rhb7e6rjr.

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

end of thread, other threads:[~2022-02-02 17:29 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31 22:54 [Bug c++/99859] New: constexpr evaluation with member function is incorrect ldalessandro at gmail dot com
2021-03-31 23:15 ` [Bug c++/99859] " ldalessandro at gmail dot com
2021-04-01 10:29 ` jakub at gcc dot gnu.org
2021-04-01 14:15 ` jakub at gcc dot gnu.org
2021-04-07 11:39 ` jakub at gcc dot gnu.org
2021-04-07 12:05 ` ppalka at gcc dot gnu.org
2021-04-07 12:14 ` jakub at gcc dot gnu.org
2021-04-07 12:15 ` ppalka at gcc dot gnu.org
2021-04-07 12:24 ` jakub at gcc dot gnu.org
2021-04-07 12:45 ` ppalka at gcc dot gnu.org
2021-04-07 13:38 ` jakub at gcc dot gnu.org
2021-04-07 13:44 ` jakub at gcc dot gnu.org
2021-04-07 13:48 ` jakub at gcc dot gnu.org
2021-04-07 14:04 ` jakub at gcc dot gnu.org
2021-04-07 16:32 ` ppalka at gcc dot gnu.org
2021-04-07 17:33 ` jakub at gcc dot gnu.org
2021-04-08 15:19 ` cvs-commit at gcc dot gnu.org
2021-04-08 15:21 ` jakub at gcc dot gnu.org
2021-04-08 15:22 ` jakub at gcc dot gnu.org
2021-04-19  1:53 ` ppalka at gcc dot gnu.org
2021-04-20  9:45 ` cvs-commit at gcc dot gnu.org
2021-07-28 22:16 ` pinskia at gcc dot gnu.org
2021-08-28 21:17 ` pinskia at gcc dot gnu.org
2021-08-28 21:21 ` pinskia at gcc dot gnu.org
2022-02-02 17:29 ` 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).