We handle this correctly in most cases (local alias templates nested within function templates don't work quite right IIRC). Also, a member of the C++ committee is planning on proposing a simpler form of this as a language feature (for C++14 or C++17). http://llvm-reviews.chandlerc.com/D575