This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Patch for Bug No-8081
- From: "Sitikant Sahu, Noida" <sitikants at noida dot hcltech dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: Zack Weinberg <zack at codesourcery dot com>, gcc at gcc dot gnu dot org
- Date: Tue, 9 Sep 2003 14:47:30 +0530
- Subject: RE: Patch for Bug No-8081
Gabriel Dos Reis wrote,
| > int *p = &func().val[i];
|
| >Bleah ill-thought-out extensions...
|
| Here the C parser takes care of semantics and emits the error.
>Why an error?
while compiling the above statement in gcc 2.96, I get this.
x.c:15: invalid use of non-lvalue array
while compiling the above statement in gcc 3.3, I get this.
x.c:15: error: invalid operands to binary +
These are also the error messages where the return type is not variable
size.
Is it the desired behaviour?
Regards
Sitikant Sahu