https://issues.dlang.org/show_bug.cgi?id=15459
Simon Naarmann <eiderd...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME |--- --- Comment #12 from Simon Naarmann <eiderd...@gmail.com> --- (In reply to Walter Bright from comment #11) > So it works for me. The code from the opening post now fails to compile in DMD v2.083.1 and the linker won't be called. That's good. But ag0aep6g's reduced case from Comment 6 -- https://issues.dlang.org/show_bug.cgi?id=15459#c6 -- still compiles with DMD v2.083.1 on 64-bit Linux, then fails to link. Linker error below. Expected instead: That code should fail compilation, as annotated via /* should fail compilation */. /usr/bin/ld: a.o: in function `_D1a__T3mapZQfFNaNbNiNfZv': a.d:(.text._D1a__T3mapZQfFNaNbNiNfZv[_D1a__T3mapZQfFNaNbNiNfZv]+0x27): undefined reference to `_D1a__T9MapResultZQl6__ctorMFNaNbNcNiNfAaZSQBp__TQBqZQBu' collect2: error: ld returned 1 exit status Error: linker exited with status 1 Or should we file a separate bug for that? --