[Issue 10524] case and with() isn't work together

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 14 07:12:06 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10524


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #2 from bearophile_hugs at eml.cc 2013-07-14 07:12:04 PDT ---
(In reply to comment #1)
> This appears to work with 2.064 alpha on win32.  Can anybody reproduce?

I can reproduce the segfault at the annotated line:


struct S {
   int field;
}
void main() {
   int a = 1;
   S s;
   switch (a) with (s) {
       case 0:
           s.field = 444; // ok
           break;
       case 1:
           field = 555; // segfault
           break;
       default:
           break;
    }
}

-- 
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