[Issue 4048] New: [CTFE] struct initializer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 2 14:34:03 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4048
Summary: [CTFE] struct initializer
Product: D
Version: future
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2010-04-02 14:34:02 PDT ---
(Not tested with the latest bug fixes)
struct Foo {
/*static*/ struct Bar { int x; }
Bar b = { x: 1 };
}
int spam() {
Foo f;
return 0;
}
void main() {
enum int _ = spam();
}
dmd 2.042 gives (with no line of error):
Error: cannot make expression out of initializer for b
--
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