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
* [Bug c++/103326] constexpr crashing when uses with vector extensions 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 ` 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 2 siblings, 0 replies; 4+ messages in thread From: rguenth at gcc dot gnu.org @ 2021-11-19 7:50 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103326 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org Last reconfirmed| |2021-11-19 Keywords| |ice-on-valid-code Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. #1 0x0000000000e6c39a in tsubst_copy (t=<vector_cst 0x7ffff66b9be8>, args=<tree_vec 0x7ffff66c43c0>, complain=3, in_decl=<template_decl 0x7ffff66c0000 foo>) at /home/rguenther/src/gcc3/gcc/cp/pt.c:17303 17303 gcc_unreachable (); I think I have a simple patch. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/103326] constexpr crashing when uses with vector extensions 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 2 siblings, 0 replies; 4+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2021-11-19 9:36 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103326 --- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>: https://gcc.gnu.org/g:dd85c42c36a5d4e00b41ed40bca98598a2fb57c5 commit r12-5398-gdd85c42c36a5d4e00b41ed40bca98598a2fb57c5 Author: Richard Biener <rguenther@suse.de> Date: Fri Nov 19 08:54:18 2021 +0100 c++/103326 - fix ICE in tsubst with VECTOR_CST This adds missing handling of VECTOR_CST. 2021-11-19 Richard Biener <rguenther@suse.de> PR c++/103326 * pt.c (tsubst_copy): Handle VECTOR_CST. * g++.dg/pr103326.C: New testcase. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/103326] constexpr crashing when uses with vector extensions 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 2 siblings, 0 replies; 4+ messages in thread From: rguenth at gcc dot gnu.org @ 2021-11-19 9:36 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103326 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Fixed on trunk. On branches this is hidden behind checking and it doesn't seem to be a regression. ^ 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).