https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65284
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Status|UNCONFIRMED |WAITING Last reconfirmed| |2015-03-03 CC| |rguenth at gcc dot gnu.org Component|target |c++ Target Milestone|--- |5.0 Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- I get (on x86_64-linux): ./cc1plus -quiet t.ii -std=c++11 t.ii: In lambda function: t.ii:50:7: error: using result of function returning 'void' }); ^ so assuming the testcase is valid this is a C++ rejects-valid bug now (4.9 accepts it)? and with a cross to arm: > ./cc1plus -quiet -std=c++11 ../../trunk-g/gcc/t.ii -I include ../../trunk-g/gcc/t.ii: In lambda function: ../../trunk-g/gcc/t.ii:48:30: error: non-trivial conversion at assignment .map([this](uint64_t childId) { ^ struct ParsedSchema struct ParsedSchema * <retval> = D.4929; ../../trunk-g/gcc/t.ii:48:30: internal compiler error: verify_gimple failed 0xf83713 verify_gimple_in_seq(gimple_statement_base*) /space/rguenther/src/svn/trunk2/gcc/tree-cfg.c:4736 0xcb9d25 gimplify_body(tree_node*, bool) do you have checking disabled?