public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/106139] New: d: aggregate value used where floating point was expected
@ 2022-06-29 13:31 ibuclaw at gdcproject dot org
  2022-06-29 21:10 ` [Bug d/106139] " ibuclaw at gdcproject dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ibuclaw at gdcproject dot org @ 2022-06-29 13:31 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106139
           Summary: d: aggregate value used where floating point was
                    expected
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ibuclaw at gdcproject dot org
  Target Milestone: ---

Casting from vector to static array is permitted, and the frontend generates a
reinterpret cast, but casting back the other way results in an error.
---
__vector(int[4]) vec = [1,2,3,4];
int[4] arr;

arr = cast(int[4])vec;            // OK
vec = cast(__vector(int[4]))arr;  // Error

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

end of thread, other threads:[~2022-07-05  9:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29 13:31 [Bug d/106139] New: d: aggregate value used where floating point was expected ibuclaw at gdcproject dot org
2022-06-29 21:10 ` [Bug d/106139] " ibuclaw at gdcproject dot org
2022-06-29 21:11 ` cvs-commit at gcc dot gnu.org
2022-07-04 13:16 ` cvs-commit at gcc dot gnu.org
2022-07-04 15:54 ` cvs-commit at gcc dot gnu.org
2022-07-05  9:40 ` cvs-commit at gcc dot gnu.org
2022-07-05  9:50 ` ibuclaw at gdcproject dot 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).