http://d.puremagic.com/issues/show_bug.cgi?id=3031
Summary: scoped static var conflicts while linking Product: D Version: 2.028 Platform: PC OS/Version: Windows Status: NEW Severity: major Priority: P1 Component: DMD AssignedTo: bugzi...@digitalmars.com ReportedBy: dav...@126.com void func(int i) { switch(i) { case 1:{static int j;break;} case 2:{static int j;break;} } } void main() { } compile this you get the previous definition different error when you link it. Error 1: Previous Definition Different : _D4test4funcFiZv1ji -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------