Thread overview
-profile and nothrow
Oct 28, 2013
Paolo Invernizzi
Oct 28, 2013
Paolo Invernizzi
Oct 28, 2013
Dicebot
Oct 29, 2013
Paolo Invernizzi
October 28, 2013
Hi all,

Compiling my application with 2.064.beta.4 and 2.063.2 with the "-profile" switch, I have an error like:

  Error: 'foo.ui.Widgets.this' is not no throw

I've read something similar involving contracts, but this seems something different.
Of course everything compiles and run fine without the "-profile" switch.

Any clue, or may I try to reduce (it is a BIG codebase)?

Thanks,
Paolo
October 28, 2013
Reduced:

    module b;
    class B {
        this() {}
    }

    module a;
    import b;

    class C : B {}
    class D(X) : X {}
    alias D!(C) HtmlPanel;

    dmd -profile a.d
    Error: 'a.C.this' is not no throw

Everything is ok without the profile... may I post a bug report for this?

/Paolo


On Monday, 28 October 2013 at 15:20:59 UTC, Paolo Invernizzi wrote:
> Hi all,
>
> Compiling my application with 2.064.beta.4 and 2.063.2 with the "-profile" switch, I have an error like:
>
>   Error: 'foo.ui.Widgets.this' is not no throw
>
> I've read something similar involving contracts, but this seems something different.
> Of course everything compiles and run fine without the "-profile" switch.
>
> Any clue, or may I try to reduce (it is a BIG codebase)?
>
> Thanks,
> Paolo
October 28, 2013
Any difference in semantics between -profile and normal flow is a
bug, so, yes, please report to bugzilla.
October 29, 2013
On Monday, 28 October 2013 at 18:34:51 UTC, Dicebot wrote:
> Any difference in semantics between -profile and normal flow is a
> bug, so, yes, please report to bugzilla.

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