This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/44938] Variable origtypes in c-parser.c accessed uninitialized
- From: "marc.glisse at normalesup dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 6 Aug 2011 15:47:37 +0000
- Subject: [Bug c/44938] Variable origtypes in c-parser.c accessed uninitialized
- Auto-submitted: auto-generated
- References: <bug-44938-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44938
Marc Glisse <marc.glisse at normalesup dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marc.glisse at normalesup
| |dot org
--- Comment #1 from Marc Glisse <marc.glisse at normalesup dot org> 2011-08-06 15:47:21 UTC ---
This breaks a -O3 bootstrap (-Werror turns the warning into an error). The code
looks like:
VEC(tree,gc) *origtypes;
...
if(...)
exprlist = NULL;
else
exprlist = c_parser_expr_list (parser, true, false, &origtypes);
...
expr.value = build_function_call_vec (op_loc, expr.value, exprlist,
origtypes);
So g++ is right to warn (even if origtypes is probably unused in that case).