[Issue 23963] New: Illegal instruction / segfalult with -preview=dip1021
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Jun  4 13:17:36 UTC 2023
    
    
  
https://issues.dlang.org/show_bug.cgi?id=23963
          Issue ID: 23963
           Summary: Illegal instruction / segfalult with -preview=dip1021
           Product: D
           Version: D2
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: witold.baryluk+d at gmail.com
Created attachment 1879
  --> https://issues.dlang.org/attachment.cgi?id=1879&action=edit
Minimized with dustmite
dmd v2.104.0, Linux 64-bit
ulong richards() {
struct task {
  }
  int qpktcount = 0;
  int holdcount ;
  task* findtcb(int id) {
      task* t ;
        import std.stdio ;
        writefln!"\nBad task id %d"(id);
      return t;
  }
  return qpktcount ;
}
$ dmd -c -preview=dip1021 richards.reduced/richards.d 
Illegal instruction (core dumped)
$
--
    
    
More information about the Digitalmars-d-bugs
mailing list