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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |easyhack
                 CC|                            |manu at gcc dot gnu.org

--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Sam James from comment #1)
> To be clear: what I'd like is if the warning included "MAGIC_NUMBER was 42
> at one instance, and 100 at another".

It should be easy to print the array types here:

https://github.com/gcc-mirror/gcc/blob/57fdc97dac1453849a76bdce265428d441a03de0/gcc/ipa-devirt.cc#L1124

by using:

     inform (loc, "array types %qT and %qT have different bounds", t1, t2);

Reply via email to