-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Open
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"floating-pointFloating-point mathFloating-point math
Description
The following code gets an infinity loop at runtime.
#include <assert.h> /* assert */
#include <stddef.h> /* offsetof */
#include <float.h> /* FLT_SNAN */
#include <complex.h> /* FLT_CMPLX */
#include <wchar.h> /* wchar_t */
#include <stdio.h> /* printf */
int main(void){
if(1){
struct bit2 {
unsigned int uibf : 7;
signed int sibf : 7;
bool bobf : 1;
} bits = { 1u, 1, 1 };
struct bit2 res;
res.bobf = bits.bobf += CMPLXF( 1.5f, 1.5f );
}
return 0;
}
Metadata
Metadata
Assignees
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"floating-pointFloating-point mathFloating-point math