Skip to content

assignment in conditions can be parsed by c parser but not c++ #212

Closed

Description

@DennySun2100
int arg = 0;
if ((arg = arg + 1) > 5) {
    printf("arg: %d, greater than 5.\n", arg);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions