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] New: [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

            Bug ID: 68795
           Summary: [6 Regression] Use of uninitialised value of size 8 in
                    cp_parser_postfix_expression (parser.c:6831)
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---

Hi.

This is very similar to PR68757.

$ valgrind --leak-check=yes --trace-children=yes ./gcc/xg++ -B gcc
/home/marxin/Programming/gcc3/gcc/testsuite/g++.old-deja/g++.ns/invalid1.C

==13137== Use of uninitialised value of size 8
==13137==    at 0x117FA93: htab_find_slot_with_hash (hashtab.c:655)
==13137==    by 0x114D32C: get_combined_adhoc_loc(line_maps*, unsigned int,
source_range, void*) (line-map.c:214)
==13137==    by 0xCC7DE7: COMBINE_LOCATION_DATA (line-map.h:1007)
==13137==    by 0xCC7DE7: make_location(unsigned int, unsigned int, unsigned
int) (tree.c:13972)
==13137==    by 0x67C0BF: cp_parser_postfix_expression(cp_parser*, bool, bool,
bool, bool, cp_id_kind*) (parser.c:6831)
==13137==    by 0x684270: cp_parser_unary_expression(cp_parser*, cp_id_kind*,
bool, bool, bool) (parser.c:7901)
==13137==    by 0x684D6B: cp_parser_cast_expression(cp_parser*, bool, bool,
bool, cp_id_kind*) (parser.c:8578)
==13137==    by 0x685187: cp_parser_binary_expression(cp_parser*, bool, bool,
bool, cp_parser_prec, cp_id_kind*) (parser.c:8679)
==13137==    by 0x685924: cp_parser_assignment_expression(cp_parser*,
cp_id_kind*, bool, bool) (parser.c:8966)
==13137==    by 0x6885EA: cp_parser_expression(cp_parser*, cp_id_kind*, bool,
bool) (parser.c:9135)
==13137==    by 0x688FA0: cp_parser_expression_statement(cp_parser*,
tree_node*) (parser.c:10596)
==13137==    by 0x6778B5: cp_parser_statement(cp_parser*, tree_node*, bool,
bool*, vec<tree_node*, va_heap, vl_ptr>*) (parser.c:10447)
==13137==    by 0x678639: cp_parser_statement_seq_opt(cp_parser*, tree_node*)
(parser.c:10719)
==13137== 
==13137== Use of uninitialised value of size 8
==13137==    at 0x114D330: get_combined_adhoc_loc(line_maps*, unsigned int,
source_range, void*) (line-map.c:215)
==13137==    by 0xCC7DE7: COMBINE_LOCATION_DATA (line-map.h:1007)
==13137==    by 0xCC7DE7: make_location(unsigned int, unsigned int, unsigned
int) (tree.c:13972)
==13137==    by 0x67C0BF: cp_parser_postfix_expression(cp_parser*, bool, bool,
bool, bool, cp_id_kind*) (parser.c:6831)
==13137==    by 0x684270: cp_parser_unary_expression(cp_parser*, cp_id_kind*,
bool, bool, bool) (parser.c:7901)
==13137==    by 0x684D6B: cp_parser_cast_expression(cp_parser*, bool, bool,
bool, cp_id_kind*) (parser.c:8578)
==13137==    by 0x685187: cp_parser_binary_expression(cp_parser*, bool, bool,
bool, cp_parser_prec, cp_id_kind*) (parser.c:8679)
==13137==    by 0x685924: cp_parser_assignment_expression(cp_parser*,
cp_id_kind*, bool, bool) (parser.c:8966)
==13137==    by 0x6885EA: cp_parser_expression(cp_parser*, cp_id_kind*, bool,
bool) (parser.c:9135)
==13137==    by 0x688FA0: cp_parser_expression_statement(cp_parser*,
tree_node*) (parser.c:10596)
==13137==    by 0x6778B5: cp_parser_statement(cp_parser*, tree_node*, bool,
bool*, vec<tree_node*, va_heap, vl_ptr>*) (parser.c:10447)
==13137==    by 0x678639: cp_parser_statement_seq_opt(cp_parser*, tree_node*)
(parser.c:10719)
==13137==    by 0x67875B: cp_parser_compound_statement(cp_parser*, tree_node*,
int, bool) (parser.c:10673)
==13137== 
==13137== Use of uninitialised value of size 8
==13137==    at 0x114D3FC: get_combined_adhoc_loc(line_maps*, unsigned int,
source_range, void*) (line-map.c:241)
==13137==    by 0xCC7DE7: COMBINE_LOCATION_DATA (line-map.h:1007)
==13137==    by 0xCC7DE7: make_location(unsigned int, unsigned int, unsigned
int) (tree.c:13972)
==13137==    by 0x67C0BF: cp_parser_postfix_expression(cp_parser*, bool, bool,
bool, bool, cp_id_kind*) (parser.c:6831)
==13137==    by 0x684270: cp_parser_unary_expression(cp_parser*, cp_id_kind*,
bool, bool, bool) (parser.c:7901)
==13137==    by 0x684D6B: cp_parser_cast_expression(cp_parser*, bool, bool,
bool, cp_id_kind*) (parser.c:8578)
==13137==    by 0x685187: cp_parser_binary_expression(cp_parser*, bool, bool,
bool, cp_parser_prec, cp_id_kind*) (parser.c:8679)
==13137==    by 0x685924: cp_parser_assignment_expression(cp_parser*,
cp_id_kind*, bool, bool) (parser.c:8966)
==13137==    by 0x6885EA: cp_parser_expression(cp_parser*, cp_id_kind*, bool,
bool) (parser.c:9135)
==13137==    by 0x688FA0: cp_parser_expression_statement(cp_parser*,
tree_node*) (parser.c:10596)
==13137==    by 0x6778B5: cp_parser_statement(cp_parser*, tree_node*, bool,
bool*, vec<tree_node*, va_heap, vl_ptr>*) (parser.c:10447)
==13137==    by 0x678639: cp_parser_statement_seq_opt(cp_parser*, tree_node*)
(parser.c:10719)
==13137==    by 0x67875B: cp_parser_compound_statement(cp_parser*, tree_node*,
int, bool) (parser.c:10673)

Thanks,
Martin

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