rui314 / 8cc

A Small C Compiler
MIT License
6.12k stars 742 forks source link

internal error for the use of rvalue struct #75

Open shinh opened 8 years ago

shinh commented 8 years ago

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