https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87282
Bug ID: 87282 Summary: Invalid use of 'void', in unevaluated context Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: delrieutheo at gmail dot com Target Milestone: --- Created attachment 44678 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44678&action=edit void pointers substraction bug Hello, I've been playing around with the detected idiom lately, and I stumbled across a bug in GCC 8.2.0, when substracting two void* in an unevaluated context. Adding those two void* works as expected (as shown in the attachment). The attachment compiles with Clang 5.0.2.