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

            Bug ID: 125364
           Summary: The __builtin_stdc_* family of builtins should be
                    provided in C++
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nikolasklauser at berlin dot de
  Target Milestone: ---

These builtins aren't just useful in C. For example, they can be used to
implement the C++ versions of the functionality as well, just like the various
`g` versions are already. However, the `stdc` variants provide more generic
builtins than the `g` variants. For example there seems to be no equivalent for
`__builtin_stdc_rotate_left` and `__builtin_stdc_rotate_right`.
Note that Clang provides these builtins in C++ as well.

P.S. I thought I already filed an issue about this, but I can't find it
anywhere. Sorry if this is a duplicate.

Reply via email to