re PR c++/84664 (internal compiler error: in cp_perform_integral_promotions, at cp...
authorMarek Polacek <polacek@redhat.com>
Fri, 2 Mar 2018 17:55:28 +0000 (17:55 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 2 Mar 2018 17:55:28 +0000 (17:55 +0000)
commit743ee9d5fe51ecab8866cdf1bf67424457aeea0c
treef0f14edfd5a86569d2157afb0d0aa8ce58c9c42e
parent8c8f2ab7081d2e14b637c57583072392c3aeac88
re PR c++/84664 (internal compiler error: in cp_perform_integral_promotions, at cp/typeck.c:2172)

PR c++/84664
* typeck.c (cp_perform_integral_promotions): Check the result of
mark_rvalue_use.

* g++.dg/cpp0x/lambda/lambda-ice28.C: New test.

From-SVN: r258149
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice28.C [new file with mode: 0644]