Reduced testcase: --- module test; class P { void f(int n) in { assert (n); } body { } } class D: P { void f(int n) in { } body { } } --- Error (only when compiling with -inline): --- test.d(5): Error: function test.D.f cannot get frame pointer to f --- Not using -inline makes it compile. Removing the empty in {} contract in D, makes it compile.
https://github.com/D-Programming-Language/dmd/pull/811
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/201c43dc1c7e0ba66690098b703446682f93642e Merge pull request #811 from donc/bug7699 Fix issue 7699 - Cannot get frame pointer to in contract when compiling ...
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5f7d47c437c6f4b3cd86b420fc0ec36405961d42 merge D2 pull #811 fix issue 7699
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル