-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Closed
Labels
c23clang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.confirmedVerified by a second partyVerified by a second partymiscompilationregression
Description
It seems clang recently started to miscompile aggregate initialization.
union foo {
char x;
int y;
long z;
} x = { 0 };
would only initialize x, which is OK (although a questionable decision). But my understanding is that
for C23 x = { } zero-filling is required, and this also does not happen anymore.
Metadata
Metadata
Assignees
Labels
c23clang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.confirmedVerified by a second partyVerified by a second partymiscompilationregression