Skip to content

Commit 7d76420

Browse files
author
noneofyourbusiness
committed
produce a more informative error message when parsing _Complex
1 parent 878fccc commit 7d76420

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

tccgen.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4533,6 +4533,8 @@ static int parse_btype(CType *type, AttributeDef *ad, int ignore_label)
45334533
case TOK_BOOL:
45344534
u = VT_BOOL;
45354535
goto basic_type;
4536+
case TOK_COMPLEX:
4537+
tcc_error("_Complex is not yet supported");
45364538
case TOK_FLOAT:
45374539
u = VT_FLOAT;
45384540
goto basic_type;

tcctok.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
DEF(TOK_FLOAT, "float")
4646
DEF(TOK_DOUBLE, "double")
4747
DEF(TOK_BOOL, "_Bool")
48+
DEF(TOK_COMPLEX, "_Complex")
4849
DEF(TOK_SHORT, "short")
4950
DEF(TOK_STRUCT, "struct")
5051
DEF(TOK_UNION, "union")

0 commit comments

Comments
 (0)