Skip to content

Wrong type deduction #738

@ChristianBml

Description

@ChristianBml

Hi Andreas,

This code:

int x = 0;
int* p = &x;
decltype((p)) e = p;

leads to the following output:

int x = 0;
int* p = &x;
int&* e = p; // <-- int*&

Regards

Christian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions