Re: [PATCH] KFAIL variable-length array tests which fail with Clang

Tom Tromey
2020-11-18T16:14:49Z

>>>>> "Gary" == Gary Benson via Gdb-patches <gdb-patches@sourceware.org> writes:

Gary> Clang describes the upper bounds of variable length arrays using
Gary> a DW_AT_count attribute which references the DIE of a synthetic
Gary> variable whose value is specified using a DW_AT_location. In
Gary> some cases GDB correctly handles these, but in other cases GDB
Gary> adds an extra dereference causing the test to fail. This commit
Gary> marks these failing tests as caused by PR gdb/26905 when the
Gary> test executable was built using Clang.

Shouldn't we just fix the gdb bug instead?
Or is there something preventing that? I feel like I may not fully
appreciate the problem.

Tom