[Issue 573] Segfault from version(release) statement
    Anders F Björklund 
    afb at algonet.se
       
    Tue Nov 21 06:17:21 PST 2006
    
    
  
Walter Bright wrote:
>> assert(0) is treated as a special case, and when compiled in release 
>> mode, they are left in and execute an illegal instruction.  
> 
> Not precisely an illegal instruction, but a HLT (or equivalent) 
> instruction, which works like a break point when running it under a 
> debugger.
On PowerPC it does a "trap" instruction which also has that effect:
Program received signal SIGTRAP, Trace/breakpoint trap.
_Dmain () at halt.d:3
3         assert(0);
(gdb)
--anders
    
    
More information about the Digitalmars-d-bugs
mailing list