main.d: ----------- template foo(T) { } pragma(msg, foo!(typeof(bar))); public void bar() { } ----------- > dmd main.d Assertion failure: 'global.errors' on line 3773 in file 'template.c'
*** Bug 2253 has been marked as a duplicate of this bug. ***
The original test case isn't actually valid, here's a slightly longer example which is valid. Fails on D2.029 as well. --- template Foo( T ) { alias int Foo;} Foo!(typeof(bar)) x; void bar() { }
This code from issue 884 (exactly 2000 bugs earlier) creates the same ICE error message. It may or may not be a duplicate; I'm putting it here so that 884 can be closed. ------ template Inner(Ts...) { const Inner = .Inner!((Ts)); } auto x = Inner!();
Fixed dmd 1.046 and 2.031
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル