[Bug c++/81525] [7 Regression] Invalid codegen with constexpr variable template

2017-10-04 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81525

Jason Merrill  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #12 from Jason Merrill  ---
Fixed.

[Bug c++/81525] [7 Regression] Invalid codegen with constexpr variable template

2017-10-04 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81525

--- Comment #11 from Jason Merrill  ---
Author: jason
Date: Wed Oct  4 15:38:24 2017
New Revision: 253415

URL: https://gcc.gnu.org/viewcvs?rev=253415=gcc=rev
Log:
PR c++/81525 - broken handling of auto in generic lambda.

* pt.c (tsubst_decl) [VAR_DECL]: Use strip_innermost_template_args.

Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/lambda-generic-auto1.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/pt.c

[Bug c++/81525] [7 Regression] Invalid codegen with constexpr variable template

2017-10-04 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81525

--- Comment #10 from Jason Merrill  ---
Author: jason
Date: Wed Oct  4 15:37:09 2017
New Revision: 253414

URL: https://gcc.gnu.org/viewcvs?rev=253414=gcc=rev
Log:
PR c++/81525 - broken handling of auto in generic lambda.

* pt.c (tsubst_decl) [VAR_DECL]: Use strip_innermost_template_args.

Added:
trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-auto1.C
trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-const4a.C
  - copied, changed from r253410,
trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-const4.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-const4.C

[Bug c++/81525] [7 Regression] Invalid codegen with constexpr variable template

2017-09-18 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81525

--- Comment #9 from Jason Merrill  ---
Author: jason
Date: Mon Sep 18 18:36:47 2017
New Revision: 252941

URL: https://gcc.gnu.org/viewcvs?rev=252941=gcc=rev
Log:
PR c++/81525 - wrong constant value with generic lambda

* pt.c (tsubst_decl) [VAR_DECL]: Avoid clobbering auto.
(tsubst_copy) [VAR_DECL]: Handle auto.

Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/lambda-generic-const4.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/pt.c

[Bug c++/81525] [7 Regression] Invalid codegen with constexpr variable template

2017-09-13 Thread aldyh at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81525

--- Comment #8 from Aldy Hernandez  ---
Author: aldyh
Date: Wed Sep 13 16:44:25 2017
New Revision: 252364

URL: https://gcc.gnu.org/viewcvs?rev=252364=gcc=rev
Log:
PR c++/81525 - wrong constant value with generic lambda

* pt.c (tsubst_decl) [VAR_DECL]: Avoid clobbering auto.
(tsubst_copy) [VAR_DECL]: Handle auto.

Added:
branches/range-gen2/gcc/testsuite/g++.dg/cpp1y/lambda-generic-const4.C
Modified:
branches/range-gen2/gcc/cp/ChangeLog
branches/range-gen2/gcc/cp/pt.c

[Bug c++/81525] [7 Regression] Invalid codegen with constexpr variable template

2017-09-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81525

--- Comment #7 from Jonathan Wakely  ---
Created attachment 42155
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42155=edit
Rejects-valid testcase

This rather complex testcase was auto-reduced and provided on IRC. It fails
with current gcc-7-branch and compiles OK (with warnings) on trunk and
gcc-6-branch.

It was fixed on trunk by r250999, so presumably would be fixed on the
gcc-7-branch by re-applying r251001 now that the branch is unfrozen.

[Bug c++/81525] [7 Regression] Invalid codegen with constexpr variable template

2017-08-24 Thread sven.c.dack at sky dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81525

Sven C. Dack  changed:

   What|Removed |Added

 CC||sven.c.dack at sky dot com

--- Comment #6 from Sven C. Dack  ---
A quick reminder that 7.2 has been released and that you probably want to put
the patch back in.

[Bug c++/81525] [7 Regression] Invalid codegen with constexpr variable template

2017-08-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81525

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|7.2 |7.3

[Bug c++/81525] [7 Regression] Invalid codegen with constexpr variable template

2017-08-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81525

--- Comment #8 from Richard Biener  ---
GCC 7.2 is being released, adjusting target milestone.

[Bug c++/81525] [7 Regression] Invalid codegen with constexpr variable template

2017-08-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81525

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|7.2 |7.3

--- Comment #6 from Richard Biener  ---
GCC 7.2 is being released, adjusting target milestone.

--- Comment #7 from Richard Biener  ---
GCC 7.2 is being released, adjusting target milestone.

[Bug c++/81525] [7 Regression] Invalid codegen with constexpr variable template

2017-08-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81525

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|7.2 |7.3

--- Comment #6 from Richard Biener  ---
GCC 7.2 is being released, adjusting target milestone.