[Bug c++/56815] void pointer arithmetic

d.v.a at ngs dot ru gcc-bugzilla@gcc.gnu.org
Tue Apr 2 17:00:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56815

--- Comment #1 from __vic <d.v.a at ngs dot ru> 2013-04-02 17:00:23 UTC ---
Slightly modified:

int main()
{
    void *p = 0;
    p++;
}

$ gcc -std=c++98 source.cpp

source.cpp:4:6: error: arithmetic on a pointer to void
    p++;
    ~^



More information about the Gcc-bugs mailing list