http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50848
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-30 10:30:35 UTC --- With -fpermissive ICEs for me, however: 50848.C: In member function ‘void B<T>::f()’: 50848.C:2:53: warning: there are no arguments to ‘u’ that depend on a template parameter, so a declaration of ‘u’ must be available [-fpermissive] 50848.C: In instantiation of ‘void B<T>::f() [with T = int]’: 50848.C:3:16: required from here 50848.C:2:50: warning: ‘u’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] 50848.C:2:50: internal compiler error: tree check: expected tree that contains ‘decl minimal’ structure, have ‘indirect_ref’ in tsubst_copy_and_build, at cp/pt.c:13529