aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov-io.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2016-10-13 16:21:28 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2016-10-13 16:21:28 +0000
commit65205e30c40701fcf161484e98d631fa36b5298d (patch)
tree403169efef8464ce3d59a9035abc31e34b98bd29 /gcc/gcov-io.c
parent5117a23e9fe6e91179ec8c3487da50c3b35a7958 (diff)
downloadgcc-65205e30c40701fcf161484e98d631fa36b5298d.zip
gcc-65205e30c40701fcf161484e98d631fa36b5298d.tar.gz
gcc-65205e30c40701fcf161484e98d631fa36b5298d.tar.bz2
compiler: don't try to get backend representation of redefinition
Trying to get the backend representation of a redefined name can cause a compiler crash as the compiler can walk over the same statements a second time. It's also quite unlikely to produce any additional useful error messages for the user. Test case follows. I'm not going to bother adding this test case to the testsuite--crash-on-invalid cases are worth fixing but not worth continually retesting. package p type A []int func (a A) Sum() (sum int) { for _, v := range a { sum += v } return sum } type A []int func (a A) Sum() (sum int) { for _, v := range a { sum += v } return sum } Reviewed-on: https://go-review.googlesource.com/30976 From-SVN: r241127
Diffstat (limited to 'gcc/gcov-io.c')
0 files changed, 0 insertions, 0 deletions