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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-02-14
                 CC|                            |jsm28 at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org,
                   |                            |mpolacek at gcc dot gnu.org,
                   |                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
It's invalid code as definition can't be an alias at the same time.
Clang provides nice diagnostics here:

$ clang pr89341.c
pr89341.c:1:16: error: definition 'foo' cannot also be an alias
__attribute__((weakref("bar")))
               ^
1 error generated.

Reply via email to