From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 13 Dec 2011 05:57:15 -0800 From: Anthony Martin To: lucio@proxima.alt.za, Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20111213135715.GA11691@dinah> References: <4ff62af94bac2fe7ab0d7c4d7f6ecbda@proxima.alt.za> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4ff62af94bac2fe7ab0d7c4d7f6ecbda@proxima.alt.za> Subject: Re: [9fans] C compiler error? Topicbox-Message-UUID: 4e61e076-ead7-11e9-9d60-3106f5b1d025 Lucio De Re once said: > 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. Yup. 8c won't allow this. If you we're using 6c you could have a vlong in a switch expression. I sent out a CL for this: https://codereview.appspot.com/5486049/ Anthony