This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 3.3 release criteria
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: Richard dot Earnshaw at arm dot com, Steven Bosscher <s dot bosscher at student dot tudelft dot nl>, Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>, Daniel Jacobowitz <drow at mvista dot com>, Andi Kleen <ak at suse dot de>, "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, gcc at gcc dot gnu dot org
- Date: Tue, 25 Feb 2003 13:53:12 +0000
- Subject: Re: GCC 3.3 release criteria
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> There are a lot of ill-formed (note I don't use other terms like
> undefined) programs for which it is impossible to emit a diagnostic. The
> following, for example is ill-formed, though each statement is
> well-defined.
>
> int x;
> int plus_x() { x+=1; return x;}
> int get_x() {return x;}
> extern int f(int, int);
> int g()
> { return g(plus_x(), get_x();}
Err, before the pedants start, that last line should read:
{return f(plus_x(), get_x());}