• Russ Cox's avatar
    cmd/gc: make forward declaration in pure Go package an error · 04098d88
    Russ Cox authored
    An error during the compilation can be more precise
    than an error at link time.
    
    For 'func init', the error happens always: you can't forward
    declare an init func because the name gets mangled.
    
    For other funcs, the error happens only with the special
    (and never used by hand) -= flag, which tells 6g the
    package is pure go.
    
    The go command now passes -= for pure Go packages.
    
    Fixes #3705.
    
    R=ken2
    CC=golang-dev
    https://golang.org/cl/6996054
    04098d88
Name
Last commit
Last update
..
cgo1.go Loading commit data...
cgo2.go Loading commit data...
cgo3.go Loading commit data...
cgo4.go Loading commit data...
defer.go Loading commit data...
defer.out Loading commit data...
defer2.go Loading commit data...
defer2.out Loading commit data...
eff_bytesize.go Loading commit data...
eff_bytesize.out Loading commit data...
eff_qr.go Loading commit data...
eff_sequence.go Loading commit data...
eff_sequence.out Loading commit data...
error.go Loading commit data...
error2.go Loading commit data...
error3.go Loading commit data...
error4.go Loading commit data...
go1.go Loading commit data...
gobs1.go Loading commit data...
gobs2.go Loading commit data...
image_draw.go Loading commit data...
image_package1.go Loading commit data...
image_package1.out Loading commit data...
image_package2.go Loading commit data...
image_package2.out Loading commit data...
image_package3.go Loading commit data...
image_package3.out Loading commit data...
image_package4.go Loading commit data...
image_package4.out Loading commit data...
image_package5.go Loading commit data...
image_package5.out Loading commit data...
image_package6.go Loading commit data...
image_package6.out Loading commit data...
interface.go Loading commit data...
interface2.go Loading commit data...
interface2.out Loading commit data...
json1.go Loading commit data...
json2.go Loading commit data...
json2.out Loading commit data...
json3.go Loading commit data...
json4.go Loading commit data...
json5.go Loading commit data...
run Loading commit data...
slices.go Loading commit data...
timeout1.go Loading commit data...
timeout2.go Loading commit data...
update.bash Loading commit data...