[PATCH] D33424: Lexer: allow imaginary constants in GNU mode (only).

Marshall Clow via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 24 15:32:27 PDT 2017

mclow.lists added a comment.

More. Trying the above code on godbolt.org, gcc 6.1/6.2/6.3/7.1 all reject it (with `-std=c++14` and `-std=c++1z`) with the error message:

> <source>: In function 'int main()':
>  <source>:4:30: error: unable to find numeric literal operator 'operator""if'
>   { std::complex<float> foo  = 1.0if; }
>                                ^~~~~
> <source>:4:30: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
>  Compiler exited with result code 1


More information about the cfe-commits mailing list