public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
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 [thread overview] Message-ID: <20010604191600.31674.qmail@sourceware.cygnus.com> (raw) 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
reply other threads:[~2001-06-04 12:16 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20010604191600.31674.qmail@sourceware.cygnus.com \ --to=jsm28@gcc.gnu.org \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).