Bug 13274 – No stacktrace in initialization area

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2014-08-09T22:01:17Z
Last change time
2024-12-13T18:23:48Z
Assigned to
No Owner
Creator
Daniel Čejchan
Moved to GitHub: dmd#18865 →

Comments

Comment #0 by czdanol — 2014-08-09T22:01:17Z
Hey, I have noticed that when you're throwing an exception in the initialization area ( shared static this or when initializing variables ), no stacktrace is shown. Example code (tested on my computer and dpaste): shared static this() { throw new Exception( "test" ); } void main() { }
Comment #1 by robert.schadek — 2024-12-13T18:23:48Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18865 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB