Skip to content

IntelliSense turns class types into (bool)false in a simple scenario #5117

Description

Use

namespace A
{
    class B
    {
        void foo(B &b);
        struct C { bool b = false;  };
        void bar(B &b);
    };
}

Hover over the “B” in the bar param list, and/or do Find All References on the “B” in “class B”.

Bug: IntelliSense shows “(bool)false” on hover and Find All References incorrectly give “Not a reference” for the bar case.

Reported as a VS bug at https://developercommunity.visualstudio.com/content/problem/949085/c-intellisense-breaks-in-a-simple-scenario-turning.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServiceVisual StudioInherited from Visual StudiobugfixedCheck the Milestone for the release in which the fix is or will be available.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions