re PR c++/84125 (ICE in generic lambda when static_assert argument is implicitly...
authorMarek Polacek <polacek@redhat.com>
Thu, 1 Feb 2018 20:32:33 +0000 (20:32 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 1 Feb 2018 20:32:33 +0000 (20:32 +0000)
commitd15f0fa7f9b7bc2eabb29429a7ca8556a3272625
tree87141f053acfbd2792d684a38597e1dba6ab99bd
parentae976c332dca908d826a71cdc81d28af71552939
re PR c++/84125 (ICE in generic lambda when static_assert argument is implicitly converted to bool)

PR c++/84125
* typeck.c (build_address): Relax the assert when
processing_template_decl.

* g++.dg/cpp1y/lambda-generic-84125.C:New test.

From-SVN: r257311
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/lambda-generic-84125.C [new file with mode: 0644]