public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/103326] New: constexpr crashing when uses with vector extensions
@ 2021-11-19  3:27 unlvsur at live dot com
  2021-11-19  7:50 ` [Bug c++/103326] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: unlvsur at live dot com @ 2021-11-19  3:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103326
           Summary: constexpr crashing when uses with vector extensions
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: unlvsur at live dot com
  Target Milestone: ---

using x86_64_v16qi [[gnu::__vector_size__ (16)]] = char;

template<typename T>
void foo()
{
        constexpr x86_64_v16qi zero{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0};
}

void foo2()
{
        foo<int>();
}

D:\hg\fast_io\.tmp>g++ -S simd_constexpr_crashing.cc -Ofast -std=c++20
-march=native -I../include
simd_constexpr_crashing.cc: In instantiation of 'void foo() [with T = int]':
simd_constexpr_crashing.cc:11:10:   required from here
simd_constexpr_crashing.cc:6:32: internal compiler error: in tsubst_copy, at
cp/pt.c:17303
    6 |         constexpr x86_64_v16qi zero{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0};
      |                                ^~~~
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.

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

end of thread, other threads:[~2021-11-19  9:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-19  3:27 [Bug c++/103326] New: constexpr crashing when uses with vector extensions unlvsur at live dot com
2021-11-19  7:50 ` [Bug c++/103326] " rguenth at gcc dot gnu.org
2021-11-19  9:36 ` cvs-commit at gcc dot gnu.org
2021-11-19  9:36 ` rguenth 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).