diff options
author | Jakub Jelinek <jakub@redhat.com> | 2020-02-10 15:04:55 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2020-02-10 15:04:55 +0100 |
commit | 13686ecef23bcfe9443a0755c73a19d677b786bd (patch) | |
tree | 87371436c40527e428c7c2f4ef31fd08a4d60459 /gcc | |
parent | 36a798fd192ced25eefaeee345507fa1a0c0356e (diff) | |
download | gcc-13686ecef23bcfe9443a0755c73a19d677b786bd.zip gcc-13686ecef23bcfe9443a0755c73a19d677b786bd.tar.gz gcc-13686ecef23bcfe9443a0755c73a19d677b786bd.tar.bz2 |
c++: Fux strncmp last argument in dump_decl_name [PR93641]
I'm not aware of symbols starting with _ZG that don't start with _ZGR
prefix, but perhaps in the future there might be some.
2020-02-10 Jakub Jelinek <jakub@redhat.com>
PR other/93641
* error.c (dump_decl_name): Fix up last argument to strncmp.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/error.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 876e2eb..a8b447b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2020-02-10 Jakub Jelinek <jakub@redhat.com> + + PR other/93641 + * error.c (dump_decl_name): Fix up last argument to strncmp. + 2020-02-10 Jason Merrill <jason@redhat.com> PR c++/93618 diff --git a/gcc/cp/error.c b/gcc/cp/error.c index ab8638f..8ec1653 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -1098,7 +1098,7 @@ dump_decl_name (cxx_pretty_printer *pp, tree t, int flags) } const char *str = IDENTIFIER_POINTER (t); - if (!strncmp (str, "_ZGR", 3)) + if (!strncmp (str, "_ZGR", 4)) { pp_cxx_ws_string (pp, "<temporary>"); return; |