Skip to content

mkString writes wild pointer levels in reverse order (mixes up type qualifiers) #161

Open
@john-h-kastner

Description

@john-h-kastner

It looks like we mess up the order of consts and *s when rewriting.

int *const *a = 1;
int *const **b = &a;

becomes

int *const *a = 1;
_Ptr<int**const > b =  &a;

but checkedc-clang complains with

test.checked.c:2:19: error: initializing '_Ptr<int **const>' with an expression of incompatible type 'int *const **'
_Ptr<int**const > b =  &a;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions