DMD 0.158 - Compiler endless loop

John C johnch_atms at hotmail.com
Thu May 25 05:02:12 PDT 2006


On DMD 0.158, Windows XP, the compiler goes into an endless loop until 
it runs out of memory when faced with this code:

struct STRUCTA {
   union {
     int a;
     long b;
   }
   STRUCTB c;
}

struct STRUCTB {
   int a;
}

If STRUCTB is defined before STRUCTA, or if STRUCTB is a class or 
interface, there's no problem. Also, take away the union and it compiles 
fine.

This did not occur in previous releases.

John.



More information about the Digitalmars-d-bugs mailing list