// PR c++/50084 // { dg-do compile { target c++11 } } // { dg-options "-fno-inline" } template struct remove_reference; template struct remove_reference { typedef T type; }; template void f(T) { } void g() { struct { } * v = 0; typedef remove_reference::type at; // The typedef should't assign the name "at" to the struct. // { dg-final { scan-assembler "_Z1fIZ1gvEUt_EvT_" } } f(at()); }