If an attempt is made to implicitly cast a const instance of a typedef of a class to a non-const instance, DMD 2.012 crashes. The following code causes the compiler to crash: class Foo {} typedef Foo Test; void f(Test test) {} void main() { const Test test; f(test); } If "typedef" is replaced with "alias" this does not occur. If "f(Test test)" is declared as "f(in Test test)" this does not occur. If Test is typedef'd to a value-type this does not occur (including structs).
Fixed DMD2.030
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル