]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: suspend safemode during typecheck of inlined bodies.
authorLuuk van Dijk <lvd@golang.org>
Fri, 10 Feb 2012 21:50:55 +0000 (22:50 +0100)
committerLuuk van Dijk <lvd@golang.org>
Fri, 10 Feb 2012 21:50:55 +0000 (22:50 +0100)
commite0b2ce34017472c684dfceae23879925711e0f88
tree85746c3dc08f6803260a3c49f03976045e3f2081
parentfbab6d8512c876dcef65e85f7a400117bc1f08f3
cmd/gc: suspend safemode during typecheck of inlined bodies.

Should be obviously correct.  Includes minimal test case.
A future CL should clear up the logic around typecheckok and importpkg != nil someday.

R=rsc, dsymonds, rsc
CC=golang-dev
https://golang.org/cl/5652057
src/cmd/gc/inl.c
test/golden.out
test/run
test/safe/main.go [new file with mode: 0644]
test/safe/nousesafe.go [new file with mode: 0644]
test/safe/pkg.go [new file with mode: 0644]
test/safe/usesafe.go [new file with mode: 0644]