6/29/2015 - 11:57 PM

492e19d098f4bf4f22bac22815e9cb117be55b33 is the first bad commit
commit 492e19d098f4bf4f22bac22815e9cb117be55b33
Author: ccoutant <ccoutant@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Fri Nov 22 22:25:49 2013 +0000

    Fix demangler to handle conversion operators correctly.
        PR other/59195
        * cp-demangle.c (struct d_info_checkpoint): New struct.
        (struct d_print_info): Add current_template field.
        (d_operator_name): Set flag when processing a conversion
        (cplus_demangle_type): When processing <template-args> for
        a conversion operator, backtrack if necessary.
        (d_expression_1): Renamed from d_expression.
        (d_expression): New wrapper around d_expression_1.
        (d_checkpoint): New function.
        (d_backtrack): New function.
        (d_print_init): Initialize current_template.
        (d_print_comp): Set current_template.
        (d_print_cast): Put current_template in scope for
        printing conversion operator name.
        (cplus_demangle_init_info): Initialize is_expression and
        * cp-demangle.h (struct d_info): Add is_expression and
        is_conversion fields.
        * testsuite/demangle-expected: New test cases.
    git-svn-id: svn+ssh:// 138bc75d-0d04-0410-961f-82ee72b054a4

:040000 040000 89c323af64e1397e1d3ccc5e815ade220a39724d 232438ed91649e8add143213b5922edb7000e423 M      libiberty
bisect run success

# Git bisect script to find the source of demangle issues
# $ git bisect start binutils-2_25 binutils-2_24 libiberty
# $ git bisect run ./


set -ex

cd libiberty


make clean && make

cd testsuite
make test-demangle

cat <<EOF >> demangle-expected
--format=gnu-v3 --no-params
VectorT<decltype (((float)())*((float)()))> VectorT<float>::operator*<float, void>(float const&) const
VectorT<float>::operator*<float, void>

./test-demangle < demangle-expected || ret=1

git checkout demangle-expected

exit $ret