This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/19040] #elif token1 token2 doesn't produce a diagnostic
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Dec 2004 01:29:19 -0000
- Subject: [Bug preprocessor/19040] #elif token1 token2 doesn't produce a diagnostic
- References: <20041216181940.19040.dpatel@apple.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From joseph at codesourcery dot com 2004-12-17 01:29 -------
Subject: Re: #elif token1 token2 doesn't produce a
diagnostic
On Thu, 16 Dec 2004, dpatel at apple dot com wrote:
> On Dec 16, 2004, at 1:01 PM, bangerth at dealii dot org wrote:
>
> > That's because it doesn't have to evaluate the #elif condition any
> > more,
> > since it has already taken the #ifdef branch.
>
> But that's the point. My reading of C99 standard does not give
> preprocessor this freedom.
For reference, the relevant paragraphs requiring this are 6.10#4, "the
directive syntax is relaxed ..." and 6.10.1#5.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19040