[Issue 1384] New: Compiler segfaults when using struct variable like a function with no opCall member.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 28 11:18:26 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1384
Summary: Compiler segfaults when using struct variable like a
function with no opCall member.
Product: D
Version: 1.019
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: aziz.kerim at gmail.com
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))
}
--
More information about the Digitalmars-d-bugs
mailing list