https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119526

            Bug ID: 119526
           Summary: standard attributes should be preserved in
                    redeclarations
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: uecker at gcc dot gnu.org
  Target Milestone: ---

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;
}

Reply via email to