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++/68795] [6 Regression] Use of uninitialised value of size 8 in cp_parser_postfix_expression (parser.c:6831)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68795

--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Mon Jan 11 18:03:15 2016
New Revision: 232238

URL: https://gcc.gnu.org/viewcvs?rev=232238&root=gcc&view=rev
Log:
PR c++/68795: fix uninitialized close_paren_loc in cp_parser_postfix_expression

gcc/cp/ChangeLog:
        PR c++/68795
        * parser.c (cp_parser_postfix_expression): Initialize
        close_paren_loc to UNKNOWN_LOCATION; only use it if
        it has been written to by
        cp_parser_parenthesized_expression_list.
        (cp_parser_parenthesized_expression_list): Document the behavior
        with respect to the CLOSE_PAREN_LOC param.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c

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