Re: foo is not an lvalue

2013-04-17 Thread Ellery Newcomer
On 04/17/2013 06:02 PM, bearophile wrote: Ellery Newcomer: dmd from master (a few days ago) gives: Error: foo()() is not an lvalue wut? I think you need to write: auto a = &foo!(); Bye, bearophile wouldn't that be infinitely recursing template instantiation?

Re: foo is not an lvalue

2013-04-17 Thread bearophile
Ellery Newcomer: dmd from master (a few days ago) gives: Error: foo()() is not an lvalue wut? I think you need to write: auto a = &foo!(); Bye, bearophile

foo is not an lvalue

2013-04-17 Thread Ellery Newcomer
void main() { foo!(); } template foo( ) { void foo() { auto a = (&foo); } } dmd from master (a few days ago) gives: Error: foo()() is not an lvalue wut?