[Issue 4176] New: Link error when case range covers 4 or more cases.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 11 14:51:01 PDT 2010


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

           Summary: Link error when case range covers 4 or more cases.
           Product: D
           Version: 2.031
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: link-failure
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at yahoo.com.au> 2010-05-11 14:50:59 PDT ---
void bug4176(int x) {
   switch(x){    
   case 1: .. case 4:
       break;
   }   
}
================
OPTLINK (R) for Win32  Release 8.00.1
Copyright (C) Digital Mars 1989-2004  All rights reserved.
OPTLINK : Warning 23: No Stack
arr.obj(arr)
 Error 42: Symbol Undefined __d_switch_error
--- errorlevel 1

================
Doesn't happen if the range is "case 1: .. case 3:"
or if you add a "default:"

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