[Issue 20573] New: typeinfo error when using more than six switch cases in Dbetterc
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Feb  9 14:20:16 UTC 2020
    
    
  
https://issues.dlang.org/show_bug.cgi?id=20573
          Issue ID: 20573
           Summary: typeinfo error when using more than six switch cases
                    in Dbetterc
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: trivial
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: raoofha at yahoo.com
hi everybody and thanks for D(betterC)
---------------------
/*
echo -ne "\033c"
sdir=`dirname $0`
odir=${sdir}
ofilename=`basename $0 .${0##*.}`
ofilepath=${odir}/${ofilename}
dmd -betterC $0 -of$ofilepath -J$sdir &&
$ofilepath ; echo $?
exit 1
*/
extern (C) void main() {
  string s = "hello";
  switch(s) {
    case "1":
    case "2":
    case "3":
    case "4":
    case "5":
    case "6":
    case "7":
    default:
  }
}
--------------------
/usr/include/dmd/druntime/import/object.d(2980): Error: TypeInfo cannot be used
with -betterC
--
    
    
More information about the Digitalmars-d-bugs
mailing list