digitalmars.D.bugs - [Issue 6968] New: Segmantation fault, if exclamation mark absent
- d-bugmail puremagic.com (38/38) Nov 17 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6968
- d-bugmail puremagic.com (8/8) Jan 28 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6968
- d-bugmail puremagic.com (8/8) Jan 28 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6968
- d-bugmail puremagic.com (10/10) Jan 28 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6968
http://d.puremagic.com/issues/show_bug.cgi?id=6968 Summary: Segmantation fault, if exclamation mark absent Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: tobias pankrath.net --- Comment #0 from Tobias Pankrath <tobias pankrath.net> 2011-11-17 12:58:35 PST --- Note the missing exclamation marks in Pred(A, B[0]) || ... The compiler dies with "Segmantation fault". import std.typetuple; import std.stdio; template Pred(A, B) { static if(is(B == int)) enum bool Pred = true; else enum bool Pred = false; } template PredAny(A, B...) { static if(B.length == 0) enum bool PredAny = false; else enum bool PredAny = Pred(A, B[0]) || PredAny(A, B[1..$]); } void main() { pragma(msg, PredAny!(int, long, ulong, int, size_t, double, float)); }; -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 17 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6968 --- Comment #1 from github-bugzilla puremagic.com 2012-01-28 19:30:46 PST --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5783cf136f0cbee2931dfb6b2e8fa47009364090 fix Issue 6968 - Segmantation fault, if exclamation mark absent -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 28 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6968 --- Comment #2 from github-bugzilla puremagic.com 2012-01-28 19:31:44 PST --- Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/d1b420de149494519ab6936c5387e3f326b2265a fix Issue 6968 - Segmantation fault, if exclamation mark absent -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 28 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6968 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 28 2012