From: Marc Glisse Date: Thu, 2 Jan 2014 22:45:56 +0000 (+0100) Subject: re PR libstdc++/59087 (Issues including complex.h in C++11/1y mode because of C's... X-Git-Tag: releases/gcc-4.9.0~1854 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=33270bf606a2e35b4b8257eb6c10b021463df79f;p=thirdparty%2Fgcc.git re PR libstdc++/59087 (Issues including complex.h in C++11/1y mode because of C's complex.h) 2014-01-02 Marc Glisse PR c++/59087 gcc/cp/ * parser.c (cp_parser_userdef_numeric_literal): Mention -fext-numeric-literals in the message. From-SVN: r206304 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index c77d86facec0..5ec2e4bdeac2 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2014-01-02 Marc Glisse + + PR c++/59087 + * parser.c (cp_parser_userdef_numeric_literal): Mention + -fext-numeric-literals in the message. + 2014-01-02 Marc Glisse PR c++/59641 diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 08ae4512fb18..35dcefd26564 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -3925,6 +3925,9 @@ cp_parser_userdef_numeric_literal (cp_parser *parser) release_tree_vector (args); error ("unable to find numeric literal operator %qD", name); + if (!cpp_get_options (parse_in)->ext_numeric_literals) + inform (token->location, "use -std=gnu++11 or -fext-numeric-literals " + "to enable more built-in suffixes"); return error_mark_node; }