In the following example, class "foo" gets a deprecated warning, but a similar class template "goo" does not. Typedefs constructed with foo or goo get an error. What up? struct foo { int i; } __attribute__ ((__deprecated__)); template<typename _Tp> struct goo { int i; } __attribute__ ((__deprecated__)); typedef foo foo_type __attribute__ ((__deprecated__)); typedef goo<int> goo_type __attribute__ ((__deprecated__)); int main() { foo f1; goo<int> f2; foo_type f3; goo_type f4; return 0; } I have a patch to mark the C++0x bits deprecated, but it's not working because of this issue.
*** This bug has been marked as a duplicate of 33911 ***