In the following example the attribute should be propagated to test3: struct [[deprecated]] foo; struct foo* test1; struct foo { int x; }; struct foo* test2; struct foo { int x; }; struct foo* test3; int f() { test2; test3; }
.
Presumably also in this example, "i" should remain deprecated: struct S { char c; [[deprecated]] int i; }; struct S { char c; int i; };