[Bug c++/89767] [8 Regression] ICE with tuple and optimization

2019-08-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89767

--- Comment #13 from Jakub Jelinek  ---
Author: jakub
Date: Fri Aug 30 12:29:13 2019
New Revision: 275139

URL: https://gcc.gnu.org/viewcvs?rev=275139=gcc=rev
Log:
Backported from mainline
2019-03-21  Jakub Jelinek  

PR c++/89767
* parser.c (cp_parser_lambda_introducer): Add ids and first_capture_id
variables, check for duplicates in this function.
* lambda.c (add_capture): Don't check for duplicates nor use
IDENTIFIER_MARKED.
(register_capture_members): Don't clear IDENTIFIER_MARKED here.

* g++.dg/cpp1y/lambda-init18.C: New test.
* g++.dg/cpp1y/lambda-init19.C: New test.
* g++.dg/cpp1y/pr89767.C: New test.

Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/lambda-init18.C
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/lambda-init19.C
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/pr89767.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/lambda.c
branches/gcc-7-branch/gcc/cp/parser.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog

[Bug c++/89767] [8 Regression] ICE with tuple and optimization

2019-05-01 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89767

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Known to work||8.3.1, 9.0
 Resolution|--- |FIXED

--- Comment #12 from Jakub Jelinek  ---
Fixed for 8.4+ too.

[Bug c++/89767] [8 Regression] ICE with tuple and optimization

2019-04-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89767

--- Comment #11 from Jakub Jelinek  ---
Author: jakub
Date: Tue Apr 30 20:51:42 2019
New Revision: 270738

URL: https://gcc.gnu.org/viewcvs?rev=270738=gcc=rev
Log:
Backported from mainline
2019-03-21  Jakub Jelinek  

PR c++/89767
* parser.c (cp_parser_lambda_introducer): Add ids and first_capture_id
variables, check for duplicates in this function.
* lambda.c (add_capture): Don't check for duplicates nor use
IDENTIFIER_MARKED.
(register_capture_members): Don't clear IDENTIFIER_MARKED here.

* g++.dg/cpp1y/lambda-init18.C: New test.
* g++.dg/cpp1y/lambda-init19.C: New test.
* g++.dg/cpp1y/pr89767.C: New test.

Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp1y/lambda-init18.C
branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp1y/lambda-init19.C
branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp1y/pr89767.C
Modified:
branches/gcc-8-branch/gcc/cp/ChangeLog
branches/gcc-8-branch/gcc/cp/lambda.c
branches/gcc-8-branch/gcc/cp/parser.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog

[Bug c++/89767] [8 Regression] ICE with tuple and optimization

2019-03-27 Thread klystron25 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89767

--- Comment #10 from Steven Seeger  ---
I can confirm that this fix corrects the issue that I've seen with gcc-3.0. I
built Gentoo's sys-devel/gcc-8.3.0 with Jakub's patch as a user patch and it
built clean, and I was able to build my codebase.

I ran my tests on the built library and they worked.

Thanks Jakub.

[Bug c++/89767] [8 Regression] ICE with tuple and optimization

2019-03-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89767

Jakub Jelinek  changed:

   What|Removed |Added

Summary|[8/9 Regression] ICE with   |[8 Regression] ICE with
   |tuple and optimization  |tuple and optimization

--- Comment #9 from Jakub Jelinek  ---
Fixed on the trunk so far.