diff options
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r-- | gcc/cp/lex.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 66377ff..bf50741 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -454,7 +454,8 @@ unqualified_name_lookup_error (tree name) if (current_function_decl) { tree decl; - decl = build_decl (VAR_DECL, name, error_mark_node); + decl = build_decl (input_location, + VAR_DECL, name, error_mark_node); DECL_CONTEXT (decl) = current_function_decl; push_local_binding (name, decl, 0); /* Mark the variable as used so that we do not get warnings @@ -511,7 +512,8 @@ build_lang_decl (enum tree_code code, tree name, tree type) { tree t; - t = build_decl (code, name, type); + t = build_decl (input_location, + code, name, type); retrofit_lang_decl (t); /* All nesting of C++ functions is lexical; there is never a "static |