http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53403
Daniel Krügler <daniel.kruegler at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler at | |googlemail dot com --- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2012-05-18 18:27:16 UTC --- The problem also exists for gcc 4.8.0 20120513 (experimental) with or without activating C++11 support. Further, if the reference to the type in template f is a dependent form, like typedef typename Foo<T>::type type; the error does not occur. This looks like a compiler-defect to me.