mirror of git://gcc.gnu.org/git/gcc.git
				
				
				
			* parser.c (cp_parser_template_id): SET_EXPR_LOCATION.
From-SVN: r225691
This commit is contained in:
		
							parent
							
								
									b3ba1c09a8
								
							
						
					
					
						commit
						55b467a057
					
				|  | @ -1,3 +1,7 @@ | |||
| 2015-07-10  Jason Merrill  <jason@redhat.com> | ||||
| 
 | ||||
| 	* parser.c (cp_parser_template_id): SET_EXPR_LOCATION. | ||||
| 
 | ||||
| 2015-07-10  Eric Botcazou  <ebotcazou@adacore.com> | ||||
| 
 | ||||
| 	* decl2.c (cpp_check): Revert latest change. | ||||
|  |  | |||
|  | @ -13839,6 +13839,8 @@ cp_parser_template_id (cp_parser *parser, | |||
|   else if (variable_template_p (templ)) | ||||
|     { | ||||
|       template_id = lookup_template_variable (templ, arguments); | ||||
|       if (TREE_CODE (template_id) == TEMPLATE_ID_EXPR) | ||||
| 	SET_EXPR_LOCATION (template_id, next_token->location); | ||||
|     } | ||||
|   else | ||||
|     { | ||||
|  | @ -13849,6 +13851,8 @@ cp_parser_template_id (cp_parser *parser, | |||
| 		   || BASELINK_P (templ))); | ||||
| 
 | ||||
|       template_id = lookup_template_function (templ, arguments); | ||||
|       if (TREE_CODE (template_id) == TEMPLATE_ID_EXPR) | ||||
| 	SET_EXPR_LOCATION (template_id, next_token->location); | ||||
|     } | ||||
| 
 | ||||
|   /* If parsing tentatively, replace the sequence of tokens that makes
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Jason Merrill
						Jason Merrill