https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113848
Bug ID: 113848 Summary: modula2 doesn't build with clang Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: build Severity: normal Priority: P3 Component: modula2 Assignee: gaius at gcc dot gnu.org Reporter: fkastl at suse dot cz Target Milestone: --- Host: x86_64-linux Target: x86_64-linux Building GCC using clang with modula2 language enabled raises this error. m2/gm2-libs-boot/SArgs.c:93:90: error: arithmetic on a pointer to void 93 | ppc = static_cast<SArgs_PtrToPtrToChar> ((void *) (((void *) (UnixArgs_GetArgV ()))+(n*sizeof (SArgs_PtrToChar)))); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ This started happening between g:fbb569315a291d2d5b32ad0fdaf0c42da9f5e93b and g:260a22de4fa3d4ad3bb0d3ef2cd45d7f03eb3160 The only commit touching ./gcc/m2/gm2-libs/Sargs.{def,mod} is g:64b0130bb6702c67a13caefaae9facef23d6ac60 so I suppose that's the culprit commit. The build is configured using --disable-multilib --disable-libsanitizer --disable-bootstrap --with-system-zlib --enable-languages=c,c++,fortran,go,jit,lto,rust,m2 --enable-host-shared