Hi! GCC implements Plan9 C extensions, and has a bug by which it allows discarding qualifiers without a cast. I'm wondering if this is a bug only in GCC, or if it's a bug also in Plan9. Anyone using a Plan9 compiler can check this code and let me know if it diagnoses about the qualifier drop?
alx@devuan:~/tmp$ cat q.c
struct foo {
int a;
};
struct bar {
struct foo;
};
void f(struct foo *);
int
main(void)
{
const struct bar b;
f(&b);
}
alx@devuan:~/tmp$ gcc -Wall -Wextra -fplan9-extensions -S q.c
alx@devuan:~/tmp$
Thanks!
Have a lovely day!
Alex
--
<https://www.alejandro-colomar.es/>
signature.asc
Description: PGP signature
------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T3f24d4bc059ffff6-Maed70d5d0ef6f4e48592e247 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
