]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/semantics.c
diagnostics: get rid of *_at_rich_loc in favor of overloading
[thirdparty/gcc.git] / gcc / cp / semantics.c
index b513c4df575c41bf2c410a8e6428ad2c1bab4414..664952e749c61710cc97068f919705647aa31611 100644 (file)
@@ -3399,7 +3399,7 @@ process_outer_var_ref (tree decl, tsubst_flags_t complain, bool force_use)
            inform (location_of (closure),
                    "the lambda has no capture-default");
          else if (TYPE_CLASS_SCOPE_P (closure))
-           inform (0, "lambda in local class %q+T cannot "
+           inform (UNKNOWN_LOCATION, "lambda in local class %q+T cannot "
                    "capture variables from the enclosing context",
                    TYPE_CONTEXT (closure));
          inform (DECL_SOURCE_LOCATION (decl), "%q#D declared here", decl);