Bug 11716 – ICE on ztc\cgcv.c 2197

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2013-12-10T03:03:16Z
Last change time
2017-12-30T07:59:23Z
Assigned to
No Owner
Creator
Babele Dunnit

Comments

Comment #0 by babele.dunnit — 2013-12-10T03:03:16Z
Hi, I am on Windows XP, 32 bits, using DMD 2.064. I just finished a HUGE reduction of our codebase with DustMite and eventually found that compiling this snippet: -------------- immutable IPL_DEPTH_8U = 8; enum Depth { U8 = IPL_DEPTH_8U} class Crash { this( Depth ){ } } -------------- with "-g -debug" DMD switches will crash DMD in ztc\cgcv.c 2197, i.e. while generating output debug symbols. Compiling release or just plain versions is fine, as it is on Linux/OsX and/or 64 bits. The bug seems definitely related to Windows 32 bits architecture. Thank you, Aaron Brancotti SRLabs Italy
Comment #1 by babele.dunnit — 2013-12-10T03:33:54Z
Sorry, I must correct and add something: the snippet will not "crash" the compiler, I meant "it will trigger the assertion" at ztc\cgcv.c:2197. But, I also cloned from GitHub and recompiled DMD with VS10 (as always, on a XP 32-bit machine) and that DMD/VS10 version WILL crash a bit above, also in cgcv.c, in "unsigned cv4_typidx(type *t)" function, in "case TYenum", because t is null (cannot give you the correct line#, I modified the sources :) ) Thanks again, Aaron
Comment #2 by alphaglosined — 2017-12-30T07:59:23Z
I cannot reproduce this on Win10 with 32 and 64bit using dmd 2.077.1 If it is still an issue, reopen.