[Issue 7412] New: void16 assignment shows interesting errors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 31 10:44:26 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7412
Summary: void16 assignment shows interesting errors
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: turkeyman at gmail.com
--- Comment #0 from Manu <turkeyman at gmail.com> 2012-01-31 10:44:25 PST ---
This line produces the following error:
void16 x = 1.0;
$ /opt/gdc/bin/gdc test.d -O2 -S -msse2
Assertion failed: tob->flags & TFLAGSfloating, file ../../gcc/d/dmd2/mtype.c,
line 3290
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
cc1d.exe: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bitbucket.org/goshawk/gdc/issues> for instructions.
This is possibly not the most informative message :)
Also, this line:
void16 x = 1;
compiles, performs effectively:
byte16 = 1;
I wonder if you should be able to assign an integer to void16 at all. Assigning
the float fails with an interesting message, assigning an integer should
probably fail too?
I think void16 should only be for blind casting between vector types, or
storage of un-typed values.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list