This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/44938] Variable origtypes in c-parser.c accessed uninitialized


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]