[Issue 7178] New: Segfault with import of invalid template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 28 10:34:54 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7178
Summary: Segfault with import of invalid template
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: robert at octarineparrot.com
--- Comment #0 from Robert Clipsham <robert at octarineparrot.com> 2011-12-28 18:34:52 GMT ---
a.d:
----
static if(is(typeof({import typecons;}()))){
}
----
typecons.d:
----
template populate(overloads...)
{
mixin populate!(.contents);
}
public mixin populate!int;
----
With the above code, dmd segfaults when using "dmd -c a.d". While typecons.d is
invalid, a.d is valid, and it should compile regardless of the validity of
typecons. Note that this can probably be triggered with valid code in
typecons.d as it was reduced from std.typecons.
--
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