Skip to content

internal error for the use of rvalue struct #75

@shinh

Description

@shinh

typedef struct {
int x;
} S;
S func();
int func2() {
return func().x;
}

$ ./8cc -c t.c
[ERROR] gen.c:401: (null): internal error: ((struct (int)))func()
zsh: exit 1 ./8cc -c t.c

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