gcc vs clang on void * indexing