This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32023] New: Invalid lvalue in void* increment error inconsitensy
- From: "nshmyrev at yandex dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 May 2007 14:29:42 -0000
- Subject: [Bug c/32023] New: Invalid lvalue in void* increment error inconsitensy
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following program doesn't compile due to invalid lvalue in increment. The
most strange thing is that gcc somehow ignores type coercion
int main ()
{
int **a;
void **b;
*b++; /* works fine */
*((void **)a)++; / gives error */
return 0;
}
--
Summary: Invalid lvalue in void* increment error inconsitensy
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: nshmyrev at yandex dot ru
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32023