Skip to content

Doesn't show const qualification when using decltype #337

@Waqar144

Description

@Waqar144

The following snippet:

int main()
{
  const int x = 20;
  decltype(x) y = 30;
}

Expands to:

int main()
{
  const int x = 20;
  int y = 30;  // should be : const int y
}

Where it should be const int y = 30;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions