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
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