[Issue 11075] New: ICE(struct.c) after gagged error in struct field initializer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 20 11:11:06 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11075
Summary: ICE(struct.c) after gagged error in struct field
initializer
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2013-09-20 11:11:04 PDT ---
This is a minor change to fail_compilation/ice9806.d from the test suite.
struct S1() { int x = undefined_expr; }
void test1() {
static assert(!is(typeof(S1!().x)));
static assert(!is(typeof(S1!().x)));
}
---
dmd: struct.c:787: virtual void StructDeclaration::semantic(Scope*): Assertion
`type->ty != Tstruct || ((TypeStruct *)type)->sym == this' failed.
Aborted
I found this by enabling full validity checking in CTFE.
--
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