From mboxrd@z Thu Jan 1 00:00:00 1970 From: jsm28@gcc.gnu.org To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c/2191 Date: Mon, 04 Jun 2001 12:16:00 -0000 Message-id: <20010604191600.31674.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00094.html List-Id: The following reply was made to PR c/2191; it has been noted by GNATS. From: jsm28@gcc.gnu.org To: Mika.Reunanen@helsinki.fi, gcc-gnats@gcc.gnu.org, jsm28@cam.ac.uk, nobody@gcc.gnu.org Cc: Subject: Re: c/2191 Date: 4 Jun 2001 19:06:36 -0000 Synopsis: GCC 2.95.2 gives misleading "syntax error" with headerfile typedef, when error is elsewhere State-Changed-From-To: open->closed State-Changed-By: jsm28 State-Changed-When: Mon Jun 4 12:06:36 2001 State-Changed-Why: GCC is correct; after preprocessing, the next token after yours is in the header, which examining preprocessed source will show you clearly. As an LALR(1) parser it detects the error as soon as possible. The behavior in this case is stated by the C standard to be undefined, and the compiler is not required to diagnose it. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2191&database=gcc