commit: 7adab39a82fd07085f600603bdc5c440aa1c142a Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Tue Dec 29 09:51:52 2020 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Tue Dec 29 09:51:52 2020 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=7adab39a
10.2.0: revert PR95820 backporting The backport breaks parsing as seen in https://gcc.gnu.org/PR98441 Bug: https://gcc.gnu.org/PR95820 Bug: https://bugs.gentoo.org/730406 Reported-by: Daniel Santos Bug: https://gcc.gnu.org/PR98441 Bug: https://bugs.gentoo.org/762382 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> 10.2.0/gentoo/34_all_fundecl-ICE-PR95820.patch | 25 ------------------------- 10.2.0/gentoo/README.history | 3 +++ 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/10.2.0/gentoo/34_all_fundecl-ICE-PR95820.patch b/10.2.0/gentoo/34_all_fundecl-ICE-PR95820.patch deleted file mode 100644 index e365420..0000000 --- a/10.2.0/gentoo/34_all_fundecl-ICE-PR95820.patch +++ /dev/null @@ -1,25 +0,0 @@ -It's an unofficial backport of PR95820 where gcc ICEs on -invalid syntax. As creduce frequently end up in these ICEs -as in #730406 let's backport it to gcc-10. - -https://gcc.gnu.org/PR95820 -https://bugs.gentoo.org/730406 ---- a/gcc/cp/decl.c -+++ b/gcc/cp/decl.c -@@ -12029,14 +12029,11 @@ grokdeclarator (const cp_declarator *declarator, - - /* Handle a late-specified return type. */ - tree late_return_type = declarator->u.function.late_return_type; -- if (funcdecl_p -- /* This is the case e.g. for -- using T = auto () -> int. */ -- || inner_declarator == NULL) -+ if (true) - { - if (tree auto_node = type_uses_auto (type)) - { -- if (!late_return_type) -+ if (!late_return_type && funcdecl_p) - { - if (current_class_type - && LAMBDA_TYPE_P (current_class_type)) diff --git a/10.2.0/gentoo/README.history b/10.2.0/gentoo/README.history index 639805d..81678b5 100644 --- a/10.2.0/gentoo/README.history +++ b/10.2.0/gentoo/README.history @@ -1,3 +1,6 @@ +6 TODO + - 34_all_fundecl-ICE-PR95820.patch + 5 18 Dec 2020 + 41_all_strlen-PR96758.patch
