September 04, 2011 [Issue 6601] New: Regression(2.053): CTFE segfault taking address of function template | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6601 Summary: Regression(2.053): CTFE segfault taking address of function template Product: D Version: D1 & D2 Platform: Other OS/Version: Windows Status: NEW Severity: regression Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: clugdbug@yahoo.com.au --- Comment #0 from Don <clugdbug@yahoo.com.au> 2011-09-04 13:45:54 PDT --- Found in Phobos. It's crashing while printing an error message. Error message was printed correctly in 2.052 and earlier. ============ template curry(alias fun) { int curry(int arg) { return fun(arg, 5); } } void foo() { int f2(int a, int b) { return a + b; } enum xe = 5; enum fe = &curry!(f2); static assert(fe(6) == 11); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 05, 2011 [Issue 6601] Regression(2.053): CTFE segfault taking address of function template | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=6601 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2011-09-05 00:21:23 PDT --- https://github.com/D-Programming-Language/dmd/commit/9777c79fc0ec5aa23011403e8e2a396805565fda https://github.com/D-Programming-Language/dmd/commit/edaf61a026bc5fbce61d47ba0d02cf43d65a326d -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation