[Issue 830] New: Access to static member variable causes Access Violation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 11 04:45:26 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=830
Summary: Access to static member variable causes Access Violation
Product: D
Version: 1.00
Platform: PC
OS/Version: Windows
Status: NEW
Severity: critical
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: ralfs72 at gmx.net
void main(char[][] args)
{
class A
{
static int v = 1;
int getv()
{
return v;
}
}
A a;
assert (a.getv() == 1);
}
==> Access Violation
--
More information about the Digitalmars-d-bugs
mailing list