From f8a70fb21767883f6d3c13e22be8d307dd98f342 Mon Sep 17 00:00:00 2001 From: Tamar Christina Date: Wed, 10 Jan 2024 13:46:22 +0000 Subject: [PATCH] c++ frontend: initialize ivdep value Should control enter the switch from one of the cases other than the IVDEP one then the variable remains uninitialized. This fixes it by initializing it to false. gcc/cp/ChangeLog: * parser.cc (cp_parser_pragma): Initialize to false. --- gcc/cp/parser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc index d71522dcd74d..8ab98cc0c231 100644 --- a/gcc/cp/parser.cc +++ b/gcc/cp/parser.cc @@ -50971,7 +50971,7 @@ cp_parser_pragma (cp_parser *parser, enum pragma_context context, bool *if_p) case PRAGMA_UNROLL: case PRAGMA_NOVECTOR: { - bool ivdep; + bool ivdep = false; tree unroll = NULL_TREE; bool novector = false; const char *pragma_str; -- 2.47.2