D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.

Issue 7178

Summary: Segfault with import of invalid template
Product: D Reporter: Robert Clipsham <robert>
Component: dmdAssignee: No Owner <nobody>
Status: RESOLVED FIXED
Severity: normal CC: bugzilla
Priority: P2 Keywords: ice-on-valid-code
Version: D2
Hardware: Other
OS: All

Description Robert Clipsham 2011年12月28日 10:34:52 UTC
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.
Comment 1 github-bugzilla 2012年01月28日 20:44:30 UTC
Commit pushed to master at https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/929b6cbd3f16ef20766f5c70b1cd3a759a4fd412
Issue 7178 - Segfault with import of invalid template
Comment 2 github-bugzilla 2012年01月28日 20:44:38 UTC
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/6be191a149cbfc66c720846d542559e46c0c895f
Issue 7178 - Segfault with import of invalid template

AltStyle によって変換されたページ (->オリジナル) /