PR c++/79228 - extensions hide C++14 complex literal operators
authorJason Merrill <jason@redhat.com>
Fri, 1 Dec 2017 20:19:07 +0000 (15:19 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 1 Dec 2017 20:19:07 +0000 (15:19 -0500)
commitf2b8b8adbae9968ac30742498a21a92ac70523ff
tree2f9f105e39188cba5d4687ec6140a48fec7e11f9
parent0951904f491340404284480603f932bd551aec80
PR c++/79228 - extensions hide C++14 complex literal operators

libcpp/
* expr.c (interpret_float_suffix): Ignore 'i' in C++14 and up.
(interpret_int_suffix): Likewise.
gcc/cp/
* parser.c (cp_parser_userdef_numeric_literal): Be helpful about
'i' in C++14 and up.

From-SVN: r255335
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp0x/gnu_fext-numeric-literals.C
gcc/testsuite/g++.dg/cpp0x/std_fext-numeric-literals.C
gcc/testsuite/g++.dg/cpp1y/complex_literals1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/complex_literals1a.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/complex_literals2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/complex_literals2a.C [new file with mode: 0644]
libcpp/ChangeLog
libcpp/expr.c