Bug 6601 – Regression(2.053): CTFE segfault taking address of function template

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-09-04T13:45:00Z
Last change time
2015-06-09T05:12:01Z
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2011-09-04T13:45:54Z
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); }
Comment #1 by bugzilla — 2011-09-05T00:21:23Z