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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|ipa                         |c

--- Comment #17 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The C++ front-end rejects this:
<source>:3:13: error: 'void foo()' defined both normally and as 'alias'
attribute
    3 | static void foo () { }
      |             ^~~
<source>:3:13: warning: 'weakref' attribute ignored because function is defined
[-Wattributes]

Due to:
      attr = tree_cons (get_identifier ("alias"), args, attr);
      attr = tree_cons (get_identifier ("weakref"), NULL_TREE, attr);

      *no_add_attrs = true;

      decl_attributes (node, attr, flags);

Reply via email to