[Bug c/106850] restrict type qualifier ignored on function return type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106850 --- Comment #3 from Alejandro Colomar --- Ahhh, yeah, something like rvalues don't have qualifiers. I seem to remember now. Maybe the standard should fix this for restrict, because things like clang's _Nonnull would benefit from being kept in such cases. Of course, that might complicate the compiler...
[Bug c/106850] restrict type qualifier ignored on function return type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106850 --- Comment #2 from Andrew Pinski --- > It's standard. Not really as the warning is correct qualifiers are really ignored on return types as required by the standard.
[Bug c/106850] restrict type qualifier ignored on function return type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106850 --- Comment #1 from Alejandro Colomar --- The benefits are: - It's standard. - It's less bytes to type.