[Issue 7890] New: [CTFE] - segfault for struct literal with AA field
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 11 08:26:45 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7890
Summary: [CTFE] - segfault for struct literal with AA field
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dawg at dawgfoto.de
--- Comment #0 from dawg at dawgfoto.de 2012-04-11 08:27:29 PDT ---
cat > bug.d << CODE
struct Foo
{
int[int] tab;
}
Foo ctfe()
{
Foo foo;
foo.tab[0] = 0;
return foo;
}
enum f = ctfe();
CODE
dmd -c bug
--------
The segfault happens during the hasNonConstPointers check
for the enum initializer. At that point the tab field type
is 'int' instead of 'int[int]'.
--
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