http://d.puremagic.com/issues/show_bug.cgi?id=3050





--- Comment #1 from Shin Fujishiro <rsi...@gmail.com>  2009-06-04 15:37:11 PDT 
---
Created an attachment (id=391)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=391)
Additional patch

Please apply this patch in addition to the first one. The first one allowed
this problematic code:
--------------------
Exception foo()
{
    Exception r;
    try
    {
        throw new Exception("error");
    }
    catch (Exception e)
    {
        r = e;
    }
    return r;
}
enum Exception e = foo();
--------------------

This patch fix the first patch so that a CTFE exception object cannot be used
as a usual object. The only allowed use of a CTFE exception object is this:
catch (Exception e) { throw e; }

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to