[Issue 3685] New: dmd silently exits on valid code
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 7 07:20:40 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3685
Summary: dmd silently exits on valid code
Product: D
Version: 1.054
Platform: Other
OS/Version: Linux
Status: NEW
Keywords: ice-on-valid-code, rejects-valid
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: nfxjfg at gmail.com
--- Comment #0 from nfxjfg at gmail.com 2010-01-07 07:20:36 PST ---
There's two things wrong with this:
1. it rejects valid code
2. it doesn't output an error message, it only does exit(1)
//fails to compile with 1.055 (dmd silently exits)
//succeeds with 1.053 (successfully compiles)
void x(T)() {
static assert(false);
}
template y(T) {
const bool y = is(typeof( { x!(T)(); } ));
}
static assert(!y!(int));
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list