1 /* Origin PR c++/54372 2 { dg-options "-Wunused-local-typedefs" } 3 { dg-do compile } 4 */ 5 6 template <typename T> f2()7void f2() 8 { 9 typedef T t __attribute__((unused)); 10 } 11 12 class S 13 { 14 template <typename T> f4()15 void f4() 16 { 17 typedef T t __attribute__((unused)); 18 } 19 }; 20 21 template <typename T> 22 class tS 23 { f()24 void f() 25 { 26 typedef T t2 __attribute__((unused)); 27 } 28 29 template <typename U> f2()30 void f2() 31 { 32 typedef T t1 __attribute__((unused)); 33 typedef U t2 __attribute__((unused)); 34 } 35 }; 36