class Foo { void _ctor() {} } void main() { Foo f = new Foo(); } asdf.d(2): function asdf.Foo._ctor expected to return a value of type int Assertion failure: 'member' on line 3208 in file 'expression.c' http://www.digitalmars.com/d/1.0/lex.html states that "[i]dentifiers starting with __ (two underscores) are reserved". This code probably fails because DMD uses the name _ctor for constructors. Either that should be __ctor or names starting with only one underscore should also be reserved. In any case, an ICE shouldn't result.
(In reply to comment #0) > asdf.d(2): function asdf.Foo._ctor expected to return a value of type int Oops! Disregard that, the code as posted doesn't result in that error message, only the ICE.
Changed in DMD 1.035 such that _ctor is reserved. A quick look doesn't give me anything in the docs about it but I'll leave this as a FIXED ice-on-invalid-code.
Fixed dmd 1.035 and 2.019
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル