>>> This only works with gcc, not clang, so it's not a viable solution. >> >> clang has support for it starting with version 16.0, see [1]. Is that >> clang version too recent to require it? >> > I don't see the attribute mentioned in the release notes. The only > thing related that I see in there is that that release now supports the > level 3 of -fstrict-flex-arrays where the previous versions only > supported up to 2. My testing confirms that no version of clang > supports the attribute.
You're right, Peter. I incorrectly inferred that support for the command line argument would also mean support for the attribute. This is not the case for Clang. What a pity. -- David Geier
