[gcc(refs/users/marxin/heads/str_starts_with)] Fix it.

Martin Liska marxin@gcc.gnu.org
Sat Mar 20 20:05:48 GMT 2021


https://gcc.gnu.org/g:9f9bf41bf36bd79eaeaf03c4476df1f23c7f8ad8

commit 9f9bf41bf36bd79eaeaf03c4476df1f23c7f8ad8
Author: Martin Liska <mliska@suse.cz>
Date:   Sat Mar 20 10:58:15 2021 +0100

    Fix it.

Diff:
---
 gcc/cp/error.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index c216e70e77e..a4e9b2a6ad9 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -1138,7 +1138,7 @@ dump_decl_name (cxx_pretty_printer *pp, tree t, int flags)
     }
 
   const char *str = IDENTIFIER_POINTER (t);
-  if (!startswith (str, "_ZGR"))
+  if (startswith (str, "_ZGR"))
     {
       pp_cxx_ws_string (pp, "<temporary>");
       return;


More information about the Gcc-cvs mailing list