Bug 8822 – Usiing qualified delegate type in template argument causes parser error.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-14T20:38:00Z
Last change time
2012-10-15T09:23:10Z
Assigned to
nobody
Creator
k.hara.pg
Depends on
4838

Comments

Comment #0 by k.hara.pg — 2012-10-14T20:38:19Z
Spin out issue from bug 8813. This is a rest of bug 4838. void main() { struct S { void foo() const {} } S s; void delegate() const dg = &s.foo; // OK void foo(void delegate() const dg){} // OK struct Foo(T) {} alias Foo!(void delegate() const) X; // NG }
Comment #1 by github-bugzilla — 2012-10-15T09:22:20Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e05f67bb20b4680e121db076fefd6fcac78c654c fix Issue 8822 - Usiing qualified delegate type in template argument causes parser error. https://github.com/D-Programming-Language/dmd/commit/ba9d3293dbaad559a022696f046994946ebbff16 Merge pull request #1184 from 9rnsr/fix8822 Issue 8822 - Usiing qualified delegate type in template argument causes parser error.