Commit 0805a34d by Paolo Carlini Committed by Paolo Carlini

re PR c++/77522 (ICE on invalid code C++14 code: in tsubst_decl, at cp/pt.c:12447)

2018-02-09  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/77522
	* g++.dg/cpp1y/lambda-init16.C: New.

From-SVN: r257521
parent c29529aa
2018-02-09 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/77522
* g++.dg/cpp1y/lambda-init16.C: New.
2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/sso8.adb: New test.
......
// PR c++/77522
// { dg-do compile { target c++14 } }
template < class T = int > void f (T)
{
auto g = [&a = f] () {}; // { dg-error "invalid initialization" }
}
int main ()
{
f (0);
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment