[Issue 15257] New: __traits(compiles,=?UTF-8?Q?=20=E2=80=A6?=) with malformed inline asm silently ends compilation
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Oct 29 05:07:22 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=15257
Issue ID: 15257
Summary: __traits(compiles, …) with malformed inline asm
silently ends compilation
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: cauterite at gmail.com
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.
--
More information about the Digitalmars-d-bugs
mailing list