Skip to content

Type promotion in compound assignments is broken #4208

Closed
@peterschrammel

Description

@peterschrammel

The program

void main()
{
  signed char i, j;
  i = j;
  i += 1;
}

yields a goto program:

signed char i;
signed char j;
i = j;
(signed int)i = (signed int)i + 1;

Broken since e78e7d1

See also #4209.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions