Re: [Bug c++/45523] New: Failure to bind auto variable to function template instance

2010-09-03 Thread Andrew Pinski
I think there is a dup of this bug without auto. Not to mention it was defect report against the standard. On Sep 3, 2010, at 10:07 AM, "jewillco at osl dot iu dot edu" > wrote: The following code: template void foo(); void f() {auto g = foo;} fails to compile in GCC 4.5.0's C++0x mode wi

[Bug c++/45523] New: Failure to bind auto variable to function template instance

2010-09-03 Thread jewillco at osl dot iu dot edu
The following code: template void foo(); void f() {auto g = foo;} fails to compile in GCC 4.5.0's C++0x mode with the following error: foo.cpp: In function ‘void f()’: foo.cpp:2:20: error: ‘g’ has incomplete type Trying different variants of this code, it appears that GCC believes that foo is