Fwd: A: a new bug to old plain C
Александр Поваляев via Gcc-h elp <[email protected]>
| Newsgroups | gmane.comp.gcc.help |
|---|---|
| Message-ID | <CAGT+J5zWeQia7GR-arLLM9jUCPZSsF_uB3nj1aUPeC6jic3TOw@mail.gmail.com> |
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.