http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51671
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Another testcase:
template <typename T, typename U>
struct S
{
static void f()
{
typedef T q;
typedef U q;
}
};
