On Sun, Jul 02, 2006 at 09:00:07AM -0700, Randall Hyde wrote: > > ----- Original Message ----- > From: "Peter Jeremy" <[EMAIL PROTECTED]> > To: "Randall Hyde" <[EMAIL PROTECTED]> > Sent: Saturday, July 01, 2006 11:10 PM > Subject: Re: FLEX, was Re: Return value of malloc(0) > > The following compiles without error: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> %{ > typedef int YYSTYPE; > typedef int YYLTYPE; > > /* > ** Allow for a recursive version of Bison parser. > */ > #undef YY_DECL > #define YY_DECL int yylex( YYSTYPE *yylval, YYLTYPE *yylloc) > %} > > %% > . ECHO; > %% > > I'll accept that you are having a problem getting HLA to build. No-one > else is reporting problems. If you want assistance from other people > then you are going to need to help by either providing a test case to > reproduce the failure you are seeing or you are going to need to provide > the pre-processed context where the error occurs. > > <<<<<<<<<<<<<<<<<<<<<<< > > Uh, is the above *not* the test case you are asking for? Carefully, read what Peter wrote. The code above compiles on FreeBSD. As does the 37 *.y files under /usr/src (excluding the 30 *.y under /usr/src/contrib which may or may not be used during compilation). > Does this particular code snippet compile for you? Yes, it does. > If so, then I've definitely got some configuration problems > with GCC on my machine. What version of FreeBSD, and did you upgrade from a previous version? Perhaps, you have some stale header files. Did you install a different version of gcc under /usr/local (or other directory) that appears early in your path? -- Steve _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"