public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/110303] New: In debug mode, gcc does not force compile time evaluation for immediate arguments
@ 2023-06-19  0:03 denis.yaroshevskij at gmail dot com
  2023-06-19  0:17 ` [Bug target/110303] Without -O0, _mm_shuffle_epi32 with a constexpr function argument does not compile pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: denis.yaroshevskij at gmail dot com @ 2023-06-19  0:03 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110303
           Summary: In debug mode, gcc does not force compile time
                    evaluation for immediate arguments
           Product: gcc
           Version: 13.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: denis.yaroshevskij at gmail dot com
  Target Milestone: ---

Minimum example:

The following code

```
#include "immintrin.h"

constexpr int f() { return 0; }
__m128i shuffle(__m128i x) { return _mm_shuffle_epi32(x, f()); }
```

Does not compile in debug

Godbolt: https://godbolt.org/z/x7bfhr4vY

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

end of thread, other threads:[~2023-06-19 12:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-19  0:03 [Bug c++/110303] New: In debug mode, gcc does not force compile time evaluation for immediate arguments denis.yaroshevskij at gmail dot com
2023-06-19  0:17 ` [Bug target/110303] Without -O0, _mm_shuffle_epi32 with a constexpr function argument does not compile pinskia at gcc dot gnu.org
2023-06-19  0:19 ` [Bug target/110303] With " pinskia at gcc dot gnu.org
2023-06-19  0:25 ` pinskia at gcc dot gnu.org
2023-06-19  7:40 ` denis.yaroshevskij at gmail dot com
2023-06-19 12:30 ` xry111 at gcc dot gnu.org
2023-06-19 12:51 ` m.cencora at gmail dot com

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