On 29/04/20 09:24 -0400, David Malcolm wrote:
On Wed, 2020-04-29 at 14:46 +0200, Jakub Jelinek wrote:

@@ -6416,6 +6416,8 @@ aapcs_vfp_is_call_or_return_candidate (e
              && ((alt = aapcs_vfp_sub_candidate (type, &new_mode,
NULL))
                  != ag_count))
            {
+             const char *url
+               = get_changes_url ("gcc-10/changes.html#empty_base");

"url" is declared here (and elsewhere) as a "const char *", but later
freed; that seems like a violation of const-correctness.  Hopefully we
emit a warning about that.

Since this is C++, it should be an error not a warning.



Reply via email to