cmd/cgo: does not recognize DW_AT_specification generated by GCC 6 #13344
The future GCC 6 is making heavier use of DW_AT_specification, which cgo does not understand. This was reported against gccgo as https://gcc.gnu.org/PR68072, but it is a general Go problem. Filing this here to consider adding the patch (which I will send out momentarily) to Go 1.5.2.
The bug can occur in various ways, but the simplest is when there is both an external declaration for a variable and a real declaration, as in
Of course in practice the