Bug 1384 – Compiler segfaults when using struct variable like a function with no opCall member.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2007-07-28T13:18:00Z
Last change time
2014-02-16T15:25:45Z
Keywords
ice-on-invalid-code
Assigned to
bugzilla
Creator
aziz.koeksal

Comments

Comment #0 by aziz.koeksal — 2007-07-28T13:18:23Z
If you comment out a or b in the union the compiler doesn't segfault anymore and it shows the following error message: Error: structliteral has no effect in expression (Foo(0)) struct Foo { union { int a; int b; } } int bla() { Foo next; next(); // Error: structliteral has no effect in expression (Foo(0)) }
Comment #1 by dvdfrdmn — 2007-09-14T00:31:10Z
*** Bug 1494 has been marked as a duplicate of this bug. ***
Comment #2 by bugzilla — 2007-09-28T22:09:28Z
Fixed dmd 1.021 and 2.004