[Issue 6601] New: Regression(2.053): CTFE segfault taking address of function template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 4 13:46:04 PDT 2011
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 at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at 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: -------
More information about the Digitalmars-d-bugs
mailing list