[Bug c++/123134] no warning for unsigned long assigned to pointer

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Wed Dec 17 11:06:14 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123134

--- Comment #5 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Richard Biener from comment #4)
> IMO this is bad from a QOI perspective, so I'd rather have it as pedantic
> error only (but warning by default is OK I guess).

My first opinion is that GCC should implement the standard
and copy Clang by producing an error message.

Gating this change on pedantic will mean very few people
will see it.

I guess a run through the gcc test suite (all 62,000 C test cases)
will provide a strong clue on how this change might impact
real code.

It might also be the case that this change is a warning in the
upcoming release and an error in the one after that.


More information about the Gcc-bugs mailing list