From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Tue, 13 Dec 2011 08:36:19 -0500 To: lucio@proxima.alt.za, 9fans@9fans.net Message-ID: In-Reply-To: <4ff62af94bac2fe7ab0d7c4d7f6ecbda@proxima.alt.za> References: <4ff62af94bac2fe7ab0d7c4d7f6ecbda@proxima.alt.za> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] C compiler error? Topicbox-Message-UUID: 4e5928dc-ead7-11e9-9d60-3106f5b1d025 On Tue Dec 13 07:43:08 EST 2011, lucio@proxima.alt.za wrote: > New features in Go require a new function in the reflect.c module > (src/cmd/gc/reflect.c). The C compiler (8c, in this case) reports an > error which does not seem to apply: > > 8c -I/go/include -I/go/386/include -FTVw ../gc/reflect.c > ../gc/reflect.c:987 switch expression must be integer > > This is a bit of a stumbling block. I'm hoping there's someone on > this mailing list that can address this problem quicker than it would > be possible for me. More details off line. i don't see 987 lines in reflect.c. from http://golang.org/src/cmd/gc/reflect.c, i only see 939. in any event, it's likely that your switch type is a uvlong. 8c doesn't allow that. - erik