re PR libstdc++/59087 (Issues including complex.h in C++11/1y mode because of C's complex.h)

2014-01-02  Marc Glisse  <marc.glisse@inria.fr>

	PR c++/59087
gcc/cp/
	* parser.c (cp_parser_userdef_numeric_literal): Mention
	-fext-numeric-literals in the message.

From-SVN: r206304
This commit is contained in:
Marc Glisse 2014-01-02 23:45:56 +01:00 committed by Marc Glisse
parent 25c541b406
commit 33270bf606
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2014-01-02 Marc Glisse <marc.glisse@inria.fr>
PR c++/59087
* parser.c (cp_parser_userdef_numeric_literal): Mention
-fext-numeric-literals in the message.
2014-01-02 Marc Glisse <marc.glisse@inria.fr>
PR c++/59641

View File

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