Message ID | c15d762d-67cb-fde5-baea-5553fc2f7b74@oracle.com |
---|---|
State | New |
Headers | show |
Series | [C++] Fix cp_parser_unqualified_id typo | expand |
On 5/31/19 5:05 AM, Paolo Carlini wrote: > > By the way, we have the option of using build_min_nt_loc instead of > build_nt in all these places for BIT_NOT_EXPR in > cp_parser_unqualified_id, Certainly it has the advantage that the > location information survives in the tree node when cp_expr is > eventually converted to a plain tree... (below tests fine) What do you > think? This patch is OK. Jason
Index: parser.c =================================================================== --- parser.c (revision 271785) +++ parser.c (working copy) @@ -6063,7 +6063,7 @@ cp_parser_unqualified_id (cp_parser* parser, "%<~auto%> only available with " "%<-std=c++14%> or %<-std=gnu++14%>"); cp_lexer_consume_token (parser->lexer); - return cp_expr (build_nt (BIT_NOT_EXPR, make_auto (), loc)); + return cp_expr (build_nt (BIT_NOT_EXPR, make_auto ()), loc); } /* If there was an explicit qualification (S::~T), first look