[Issue 8641] New: Segfault on accessing undefined identifier
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 11 08:18:16 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8641
Summary: Segfault on accessing undefined identifier
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: maxim at maxim-fomin.ru
--- Comment #0 from Maxim Fomin <maxim at maxim-fomin.ru> 2012-09-11 08:18:43 PDT ---
union MutableConst(T, bool isDefaultMutable)
{
const T c;
T i;
static if (isMutable) //bug
alias i this;
else
alias c this;
}
struct S
{
MutableConst!(int, false) val;
}
void main()
{
}
DMD produces three times error "hello.d(5): Error: undefined identifier
isMutable
" and then crashes.
--
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