D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3253 - DMD crashes on function pointer struct member initialization with function literal
Summary: DMD crashes on function pointer struct member initialization with function li...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Linux
: P2 normal
Assignee: No Owner
URL:
Keywords: ice-on-invalid-code
Depends on:
Blocks:
 
Reported: 2009-08-16 07:27 UTC by Sebastien Alaiwan
Modified: 2015-06-09 01:28 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Sebastien Alaiwan 2009-08-16 07:27:04 UTC
// crashes dmd 2.031

struct MyStruct
{
  int function() fp;
}

MyStruct[] MyArray =
[
{ &MyUnexistingFunction },
{ function int() { return 0;}; },
];
Comment 1 Walter Bright 2009-09-03 13:45:08 UTC
Fixed dmd 2.032