diff options
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/lambda.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 553658f42d1..a719f5b6471 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2016-10-07 Martin Liska <mliska@suse.cz> + + * lambda.c (maybe_add_lambda_conv_op): Set default value. + 2016-10-06 Jason Merrill <jason@redhat.com> * call.c (build_temp, convert_like_real): Don't re-copy diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c index cd322260c34..d4284bfa48b 100644 --- a/gcc/cp/lambda.c +++ b/gcc/cp/lambda.c @@ -967,7 +967,7 @@ maybe_add_lambda_conv_op (tree type) { int ix = 0; tree src = DECL_CHAIN (DECL_ARGUMENTS (callop)); - tree tgt; + tree tgt = NULL; while (src) { |