[Issue 5248] CTFE Segfault when calling a function on an enum struct

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 24 18:47:30 PST 2010


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



--- Comment #1 from Gareth Charnock <gareth.tpc at gmail.com> 2010-11-24 18:46:06 PST ---
Slight simplification, you don't need a main to cause this:


struct LeafType {
    string Compile_not_ovloaded() {
        return "expression";
    }
};
struct MatrixASTNode {
    LeafType Right;

    string Compile() {
        return  Right.Compile_not_ovloaded();
    }
};
enum AST = MatrixASTNode();
enum s=AST.Compile();

Makes the backtrace shorter.

-- 
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