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

            Bug ID: 100596
           Summary: [12 Regression] error: attribute appertains to a
                    friend declaration that is not a definition since
                    r12-786-g149061188c7c6ddf
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: jason at gcc dot gnu.org, mpolacek at gcc dot gnu.org
  Target Milestone: ---

Affects multiple packages:

$ cat json.ii
struct final {
  friend __attribute__((visibility)) bool;
};

$ g++ json.ii -c
json.ii:2:3: error: attribute appertains to a friend declaration that is not a
definition
    2 |   friend __attribute__((visibility)) bool;
      |   ^~~~~~

Reply via email to