在 2024-12-30 01:57, Jeremy Drake via Mingw-w64-public 写道:
I did some playing with godbolt.org.  It seems OK with `register` with
`__asm__`: https://godbolt.org/z/xrdn3rG45
but gives an error without:
error: ISO C++17 does not allow 'register' storage class specifier
[-Wregister]
https://godbolt.org/z/cMbhhffhs
(of course, it also gives an error for file-scoped register variable too).

The combination of `register` and `asm` is an extension and can't be deprecated unless there is an alternative.


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to