Re: A: a new bug to old plain C
Andrey Tarasevich via Gcc-help <[email protected]> Sun, 7 Dec 2025 19:09:42 -0800 (PST)
| Newsgroups | gmane.comp.gcc.help |
|---|---|
| Message-ID | <[email protected]> |
> Further I also assume that you don't see compiler warnings as disagreeing with you? like in > > char *a; > int b = a; > # warning: initialization of ‘int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion] Well, once again: language-wise this is a constraint violation, i.e. a hard error. The fact that it is reported as a "warning" simply means that your compiler is configured to issue a non-aborting diagnostic message for this error (aka "warning"). It is just a quirk of the compiler. -- Best regards, Andrey