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

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 15 13:24:20 GMT 2025


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Guess this is because we don't keep track on what INTEGER_CST is an integer
literal and what is just an integer literal cast to some integral type, both
will be INTEGER_CST which are shared.  Dunno if this is something we should
record on the location wrapper for it (but then e.g. inside of attributes we
turn off location wrappers).


More information about the Gcc-bugs mailing list