public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/97132] New: assume_aligned is not constexpr
@ 2020-09-21  4:52 fsb4000 at yandex dot ru
  2020-09-21  7:39 ` [Bug libstdc++/97132] " redi at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: fsb4000 at yandex dot ru @ 2020-09-21  4:52 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97132
           Summary: assume_aligned is not constexpr
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fsb4000 at yandex dot ru
  Target Milestone: ---

failed test example: https://gcc.godbolt.org/z/KK6W8G

see your implementation:

```
return static_cast<_Tp*>(__builtin_assume_aligned(__ptr, _Align));
```

cast from void * to _Ty* is not allowed in a constant expression.

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

end of thread, other threads:[~2020-10-19 21:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21  4:52 [Bug libstdc++/97132] New: assume_aligned is not constexpr fsb4000 at yandex dot ru
2020-09-21  7:39 ` [Bug libstdc++/97132] " redi at gcc dot gnu.org
2020-09-21  8:01 ` jakub at gcc dot gnu.org
2020-09-21  8:34 ` redi at gcc dot gnu.org
2020-09-21  8:38 ` fsb4000 at yandex dot ru
2020-09-21 13:29 ` cvs-commit at gcc dot gnu.org
2020-10-19 21:25 ` cvs-commit at gcc dot gnu.org
2020-10-19 21:25 ` cvs-commit at gcc dot gnu.org
2020-10-19 21:34 ` 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).