This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/78985] [7 Regression] profiledbootstrap failure by -Wuninitialized
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 26 Jan 2017 09:08:10 +0000
- Subject: [Bug bootstrap/78985] [7 Regression] profiledbootstrap failure by -Wuninitialized
- Auto-submitted: auto-generated
- References: <bug-78985-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78985
--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
Merge base r235033 (of trunk and 6 branch) with following patch (that I
installed couple weeks ago) works:
diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c
index cdc11fe..9e5e044 100644
--- a/gcc/cp/lambda.c
+++ b/gcc/cp/lambda.c
@@ -935,7 +935,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)
{
There are just few commits for the file in between, let's see.