Fwd: A: a new bug to old plain C
Александр Поваляев
apovalyaev@gmail.com
Thu Nov 20 23:26:30 GMT 2025
struct zzz {
unsigned x, y;
};
void square(struct zzz ** arr_of_ptr, unsigned count) {
*// The first "const" produce an error (not a warning) within some GCC
toolchains, for example ARM GCC trunk (linux), see goldbolt.org
<http://goldbolt.org>*
struct zzz const * const * const end_of_arr = arr_of_ptr + count;
*// Without the first const "struct zzz * const * const end_of_arr =
arr_of_ptr + count;" it works fine!!!*
}
Respectfully,
Aleksandr G Povaliaev.
More information about the Gcc-help
mailing list