]> Cypherpunks repositories - gostls13.git/commit
cgo: print error instead of panic on undeclared enums/structs
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 9 Nov 2011 21:01:55 +0000 (16:01 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 9 Nov 2011 21:01:55 +0000 (16:01 -0500)
commit23ffbe611d770e9f4e4d6af57eba3c9a4f72f383
tree045321d28456337f289f4511c32184f0cd524b37
parent17105870ffbcdf8c68c1ee9cb399f71b3fbc8f81
cgo: print error instead of panic on undeclared enums/structs

Types are left as nil if no DWARF information is found and
checking in the rewriting pass so that appropriate errors
with line numbers can be printed.
Fixes #2408.

R=rsc
CC=golang-dev, remy
https://golang.org/cl/5336041
src/cmd/cgo/gcc.go