https://ideone.com/5tn592 When DMD hits this: __traits(compiles, { asm {#$%^&*;} }); it runs asmerr(…) which is supposed to print the error ( verror(…) ) and exit(). However, because __traits(compiles sets global.gag to 1, verror never prints anything, so the compiler exits with no error message whatsoever.
Timeline: 2.058: Shows error message 2.059: Segfaults 2.060: Exits silently
https://github.com/D-Programming-Language/dmd/pull/5244
(In reply to Vladimir Panteleev from comment #2) > https://github.com/D-Programming-Language/dmd/pull/5244 Thanks, not sure why the pull didn't get posted here automatically.
(In reply to Cauterite from comment #3) > Thanks, not sure why the pull didn't get posted here automatically. It's not, you have to post it yourself. http://wiki.dlang.org/Pull_Requests#Create_a_pull_request
(In reply to Vladimir Panteleev from comment #4) > (In reply to Cauterite from comment #3) > > Thanks, not sure why the pull didn't get posted here automatically. > > It's not, you have to post it yourself. > > http://wiki.dlang.org/Pull_Requests#Create_a_pull_request Ah, whoops. I think the wording on that page is a bit ambiguous.
(In reply to Cauterite from comment #5) > I think the wording on that page is a bit ambiguous. It's a wiki, fix it :)
New pull request: https://github.com/dlang/dmd/pull/6068 I could use some help identifying the cause of buggy behaviour introduced by this patch; see: https://github.com/dlang/dmd/pull/6068#issuecomment-240745667
@WalterBright created dlang/dmd pull request #11597 "fix Issue 15257 - __traits(compiles, .) with malformed inline asm sil…" fixing this issue: - fix Issue 15257 - __traits(compiles, .) with malformed inline asm silently ends compilation https://github.com/dlang/dmd/pull/11597
dlang/dmd pull request #11597 "fix Issue 15257 - __traits(compiles, .) with malformed inline asm sil…" was merged into master: - 282b81d4ea1f80ad967a69a5dc5c03cb3d2f2c1a by Walter Bright: fix Issue 15257 - __traits(compiles, .) with malformed inline asm silently ends compilation https://github.com/dlang/dmd/pull/11597