PR c++/71696 testcase.
authorMarcel Böhme <boehme.marcel@gmail.com>
Thu, 4 Aug 2016 16:53:18 +0000 (16:53 +0000)
committerMark Wielaard <mark@klomp.org>
Fri, 18 Nov 2016 10:06:17 +0000 (11:06 +0100)
commit9d2cdc86574bda0f1013be8cdc166d86b6d032bc
treebfa085b494595539fe9b7f8b871cd4cb8a70ba4f
parentc2c4ff8d52a2cd3263a547b0384692498714aa1b
PR c++/71696 testcase.

Add libiberty/testsuite/demangle-expected testcase for:

PR c++/71696
* cplus-dem.c: Prevent infinite recursion when there is a cycle
in the referencing of remembered mangled types.
(work_stuff): New stack to keep track of the remembered mangled
types that are currently being processed.
(push_processed_type): New method to push currently processed
remembered type onto the stack.
(pop_processed_type): New method to pop currently processed
remembered type from the stack.
(work_stuff_copy_to_from): Copy values of new variables.
(delete_non_B_K_work_stuff): Free stack memory.
(demangle_args): Push/Pop currently processed remembered type.
(do_type): Do not demangle a cyclic reference and push/pop
referenced remembered type.
libiberty/testsuite/demangle-expected
This page took 0.025132 seconds and 4 git commands to generate.