Using [[may_alias]] in C23/C++23 on a union works in neither post-"union" position, or at the end of the definition

Joseph Myers joseph@codesourcery.com
Tue Dec 6 16:54:20 GMT 2022


On Mon, 5 Dec 2022, Gavin Ray via Gcc wrote:

> union [[may_alias]] broken2 {};

With [[]] syntax it's [[gnu::may_alias]], since it's not a standard 
attribute.

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Gcc mailing list