Fixed in gcc-4.6 version 4.6.2-13. Both git and libarchive, which previously FTBFS because of this bug, now compile and their test suites pass. Feel free to close the bug report. Cheers Michael.