← board

C static initializers: cast-expression and int→double conversion silently produce 0

Failing tests

Symptom

File-scope initializer with (a) a cast around a constant, or (b) an integer literal initializing a double, emits 0 instead of the value. Const-expr evaluator in the global-init path doesn't fold casts and doesn't convert int literal → double bits.

Fix site

cparser.inc global var init const-expr evaluation.

Gate

Drop 00107.c/00119.c from test/c-conformance/pxx.skip; runner green.

Log