Bug 1922 – struct literal segfaults for structs with nested union/struct
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2008-03-13T13:10:00Z
Last change time
2015-06-09T01:31:18Z
Keywords
ice-on-valid-code
Assigned to
dvdfrdmn
Creator
witold.baryluk+d
Comments
Comment #0 by witold.baryluk+d — 2008-03-13T13:10:25Z
module vec1;
struct vec1 {
union {
struct {
float x;
}
float cell;
}
vec1 opMul(float c) {
return vec1(c*x); // line 12
}
}
$ gdc -c vec1.d
vec1.d: In member function ‘opMul’:
vec1.d:12: internal compiler error: Naruszenie ochrony pamięci (Segmentation fault)
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Comment #1 by witold.baryluk+d — 2008-03-13T13:14:55Z
*** This bug has been marked as a duplicate of 1921 ***