// PR c++/18738 namespace foo { typedef int my_type; } template struct A { typename foo::my_type bar(); };