Skip to content

No warning on shifted boolean expression #28334

@arsenm

Description

@arsenm
Bugzilla Link 27960
Version unspecified
OS All
CC @hfinkel,@zygoloid,@Weverything,@seanm

Extended Description

Code such as this produces no warning

void bar(int x)
{
    if ((x == 0) >> 3)
    {

    }
}

Discovered from problem fixed in r271356

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-reviewHas pending Phabricator reviewbugzillaIssues migrated from bugzillaclang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzergood first issuehttps://github.com/llvm/llvm-project/contribute

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions