digitalmars.D.bugs - [Issue 6651] New: [SafeD] Exception/Throwable constructors are not safe ?
- d-bugmail puremagic.com (33/33) Sep 12 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6651
- d-bugmail puremagic.com (13/13) Jul 02 2013 http://d.puremagic.com/issues/show_bug.cgi?id=6651
http://d.puremagic.com/issues/show_bug.cgi?id=6651 Summary: [SafeD] Exception/Throwable constructors are not safe ? Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: druntime AssignedTo: nobody puremagic.com ReportedBy: dmitry.olsh gmail.com 06:17:30 PDT --- safe class NewException : Exception { /// this(string msg, string file = __FILE__, size_t line = __LINE__) { super(msg, file, line); } } Results in: safe.d(7): Error: safe function 'this' cannot call system function 'this' The funny thing is that Exception still can be created/thrown in safe functions, e.g. this compiles: safe void f() { new Exception("blah"); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 12 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6651 hsteoh quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |hsteoh quickfur.ath.cx Resolution| |WORKSFORME This bug seems no longer present in git HEAD. Please reopen if there's still a problem. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 02 2013