public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/32023]  New: Invalid lvalue in void* increment error inconsitensy
@ 2007-05-21 14:29 nshmyrev at yandex dot ru
  2007-05-21 14:45 ` [Bug c/32023] " schwab at suse dot de
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: nshmyrev at yandex dot ru @ 2007-05-21 14:29 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-05-23 16:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-21 14:29 [Bug c/32023] New: Invalid lvalue in void* increment error inconsitensy nshmyrev at yandex dot ru
2007-05-21 14:45 ` [Bug c/32023] " schwab at suse dot de
2007-05-22 17:16 ` [Bug c/32023] No casts in lvalue error message nshmyrev at yandex dot ru
2007-05-22 17:27 ` pinskia at gcc dot gnu dot org
2007-05-22 17:33 ` nshmyrev at yandex dot ru
2007-05-22 20:33 ` schwab at suse dot de
2007-05-22 20:36 ` nshmyrev at yandex dot ru
2007-05-22 20:51 ` schwab at suse dot de
2007-05-22 23:13 ` nshmyrev at yandex dot ru
2007-05-22 23:27 ` pinskia at gcc dot gnu dot org
2007-05-23 15:57 ` manu at gcc dot gnu dot org
2007-05-23 16:06 ` nshmyrev at yandex dot ru

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).