[Issue 7803] scope(success) in nothrow/@safe functions causes compile errors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 2 09:07:41 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7803
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2012-04-02 09:08:13 PDT ---
This is happening because
scope(success) { success_clause; }
...
gets transformed into:
try {
...
}
catch(Throwable t)
{
success_clause;
throw t;
}
Obviously the compiler shouldn't generate an error for code it wrote!
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list