[PR c++/84835] ICE with generic lambda in extern "C"
authorNathan Sidwell <nathan@acm.org>
Mon, 19 Mar 2018 18:56:22 +0000 (18:56 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 19 Mar 2018 18:56:22 +0000 (18:56 +0000)
commit143f00e1126c474e7caceba74747e3173b16e87c
treecad31708fc1f804780b65574cd159ff7f364ae1e
parentf7d884d45b929c3f0ab65b0830cce4517b5f968d
[PR c++/84835] ICE with generic lambda in extern "C"

https://gcc.gnu.org/ml/gcc-patches/2018-03/msg00890.html
PR c++/84835
* lambda.c (maybe_add_lambda_conv_op): Force C++ linkage.
* pt.c (build_template_decl): Propagate language linkage.

PR c++/84835
* g++.dg/cpp1y/pr84835.C: New.

From-SVN: r258655
gcc/cp/ChangeLog
gcc/cp/lambda.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr84835.C [new file with mode: 0644]