https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104533
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2022-02-16
Keywords| |ice-on-invalid-code
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is invalid code:
<source>:6:1: error: clones for 'target_clones' attribute cannot be created
6 | B::~B(){}
| ^
<source>:6:1: note: 'target_clones' cannot be combined with 'alias' attribute
<source>: In function '_ZN1BD0Ev.resolver':
<source>:6:9: sorry, unimplemented: virtual function multiversioning not
supported
6 | B::~B(){}
| ^
<source>:6:9: sorry, unimplemented: virtual function multiversioning not
supported
<source>:6:9: sorry, unimplemented: virtual function multiversioning not
supported
Note I notice clang accepts the code but emits completely wrong stuff.