www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - -profile and nothrow

reply "Paolo Invernizzi" <paolo.invernizzi gmail.com> writes:
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
Oct 28 2013
parent reply "Paolo Invernizzi" <paolo.invernizzi gmail.com> writes:
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
Oct 28 2013
parent reply "Dicebot" <public dicebot.lv> writes:
Any difference in semantics between -profile and normal flow is a
bug, so, yes, please report to bugzilla.
Oct 28 2013
parent "Paolo Invernizzi" <paolo.invernizzi gmail.com> writes:
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
Oct 29 2013