A: a new bug to old plain C
LIU Hao
lh_mouse@126.com
Wed Nov 26 16:13:03 GMT 2025
在 2025-11-26 21:48, Александр Поваляев 写道:
> I want to emphasize here "One of the following shall hold"!.
> So, if one of the following is being hold, the conversion/assignment is permitted.
> But USE THE SAME TRICK WITH DISJUNCTION AND CONJUNCTION to prove that "Foo**" -> const Foo * const *
> const" is not correct.
> IT IS WRONG WAY.
> To be logically correct you need to show that NO ONE OF THE 6.5.17.2 STATEMENT is TRUE for "Foo**" ->
> const Foo * const * const" logic.
If you had read the damn standard, you would have known that the others are all about arithmetic types,
structs and unions, pointer to void, and conversion to `bool`, and apparently they do not apply. Pity.
Because you are writing C, you don't need to cast the pointer to `struct zzz const * const * const`; you
just cast to `void*`. If you don't know that, you cannot know more C than me.
I'm already very disappointed about this thread, because half of the messages are about `char **` does
not implicit convert to `const char **` which is technically a different question from yours. And now I'm
getting more, because of your disrespect.
> But it is ok. It is usually being studied at some university courses, so if you decide to enter some high
> education school you will learn all of these things.
You are in no position to say that. We are well educated, and apparently you are not such a person.
--
Best regards,
LIU Hao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20251127/a4df4b97/attachment-0001.sig>
More information about the Gcc-help
mailing list