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; }