D-Programming-Language/dmd — pull request #1194 by donc (2012-10-19 15:56:42+00:00)
Title: 8257 x.staticfunc() is a function pointer, not a delegate

The bug title is "__traits(compiles) gives compile error" but this has nothing to do with __traits.

Instead of saying that & v.staticfunc is a delegate, and generating an error in the glue layer,
change it into (v, &typeof(v).staticfunc) and mark it as a function pointer.