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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
And
--- gcc/cp/cp-gimplify.c.jj     2021-02-09 10:05:28.835833433 +0100
+++ gcc/cp/cp-gimplify.c        2021-02-09 15:02:37.906710438 +0100
@@ -3030,6 +3030,7 @@ fold_builtin_source_location (location_t
          else if (strcmp (n, "_M_function_name") == 0)
            {
              const char *name = "";
+             auto cleanup = make_temp_override (flag_pretty_templates, false);

              if (current_function_decl)
                name = cxx_printable_name (current_function_decl, 2);
wouldn't help either, we'd get then
"constexpr std::string_view get_object_name1<foo>()"
vs.
"constexpr std::string_view get_object_name2()"

Reply via email to