semantic: Accept complex literal suffixes even in non-gcc mode.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 17 Dec 2012 10:27:36 +0000 (11:27 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 17 Dec 2012 11:13:07 +0000 (12:13 +0100)
FreeBSD's system headers use them without __extension__ and gcc accepts them with -std=c99, too.

parser.c

index c36bc91..f742f33 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -5696,8 +5696,6 @@ static void check_number_suffix(expression_t *const expr, char const *const suff
 
                case 'I': case 'i':
                case 'J': case 'j':
-                       if (!GNU_MODE)
-                               goto error;
                        add = SPECIFIER_COMPLEX;
                        break;