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
This bug is illarious. "Pay as you go", well well well, nobody paid for typeinfo by writing a switch.
*** This issue has been marked as a duplicate of issue 20613 ***