https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103670
--- Comment #3 from Robert M. Münch <robert.muench at saphirion dot com> --- I updated to GCC 11.2, which has the same problem but after 4 rounds, not 3. GCC 10.3 Output: 9512] ==> GetAdapterMACAddress [9512] parameter check dwRetVal: 0 number: 0 [9512] AddressLenth: 6 [9512] i: 0 offset: 0, AddressLenth: 6 [9512] i: 1 offset: 3, AddressLenth: 6 [9512] i: 2 offset: 6, AddressLenth: 6 [9512] <- OK: 00-1C-42- AddressLength: 3 GCC 11.2 Output: [7128] ==> GetAdapterMACAddress [7128] parameter check dwRetVal: 0 number: 0 [7128] AddressLenth: 6 [7128] i: 0 offset: 0, AddressLenth: 6 [7128] i: 1 offset: 3, AddressLenth: 6 [7128] i: 2 offset: 6, AddressLenth: 6 [7128] i: 3 offset: 9, AddressLenth: 6 [7128] <- OK: 00-1C-42-10- AddressLength: 4