• Ian Lance Taylor's avatar
    cmd/cgo: don't report inconsistency error for incomplete typedef · a371bc2d
    Ian Lance Taylor authored
    In CLs 122575 and 123177 the cgo tool started explicitly looking up
    typedefs. When there are two Go files using import "C", and the first
    one has an incomplete typedef and the second one has a complete
    version of the same typedef, then we will now record a version of the
    first typedef which will not match the recorded version of the second
    typedef, producing an "inconsistent definitions" error. Fix this by
    silently merging incomplete typedefs with complete ones.
    
    Fixes #26430
    
    Change-Id: I9e629228783b866dd29b5c3a31acd48f6e410a2d
    Reviewed-on: https://go-review.googlesource.com/124575
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarKeith Randall <khr@golang.org>
    a371bc2d
Name
Last commit
Last update
..
errors Loading commit data...
fortran Loading commit data...
gmp Loading commit data...
life Loading commit data...
nocgo Loading commit data...
stdio Loading commit data...
test Loading commit data...
testasan Loading commit data...
testcarchive Loading commit data...
testcshared Loading commit data...
testgodefs Loading commit data...
testplugin Loading commit data...
testsanitizers Loading commit data...
testshared Loading commit data...
testsigfwd Loading commit data...
testso Loading commit data...
testsovar Loading commit data...
testtls Loading commit data...