Commit 3bcd9882 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/87386 (Error message for static_assert show wrong range)

	PR c++/87386
	* parser.c (cp_parser_operator): Use str.get_value () instead of just
	str in USERDEF_LITERAL_VALUE and USERDEF_LITERAL_SUFFIX_ID arguments.

From-SVN: r266369
parent 577fe16a
2018-11-22 Jakub Jelinek <jakub@redhat.com>
PR c++/87386
* parser.c (cp_parser_operator): Use str.get_value () instead of just
str in USERDEF_LITERAL_VALUE and USERDEF_LITERAL_SUFFIX_ID arguments.
2018-11-21 Jakub Jelinek <jakub@redhat.com>
PR c++/88122
......
......@@ -15306,8 +15306,8 @@ cp_parser_operator (cp_parser* parser, location_t start_loc)
return error_mark_node;
else if (TREE_CODE (str) == USERDEF_LITERAL)
{
string_tree = USERDEF_LITERAL_VALUE (str);
id = USERDEF_LITERAL_SUFFIX_ID (str);
string_tree = USERDEF_LITERAL_VALUE (str.get_value ());
id = USERDEF_LITERAL_SUFFIX_ID (str.get_value ());
end_loc = str.get_location ();
}
else
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment