re PR c++/31754 (Improve column number accuracy in error messages)
authorDodji Seketeli <dseketel@redhat.com>
Fri, 11 Jul 2008 12:54:22 +0000 (12:54 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Fri, 11 Jul 2008 12:54:22 +0000 (14:54 +0200)
commit2b7a3abf6e2488a0b7e4f1bad6b1da3616d60eea
tree67a98c7d92d1fd0e083fc056e53338895ee34a08
parent941a9479d0a4d5fb26182ee6c485c4bf210a6499
re PR c++/31754 (Improve column number accuracy in error messages)

2008-07-11 Dodji Seketeli <dseketel@redhat.com>

PR c++/31754
* pt.c, semantic.c:
* semantic.c (qualified_name_lookup_error, finish_id_expression):
add a location_t parameter so that
error message can have a more accurate location.
* cp-tree.h: updated prototype
* pt.c (tsubst_qualified_id): use location in error messages.
* parser.c (cp_parser_postfix_expression,
cp_parser_objc_statement, cp_parser_trait_expr,
cp_parser_token_is_class_key,
cp_parser_uncommitted_to_tentative_parse_p,
cp_parser_check_for_invalid_template_id, cp_parser_is_string_literal,
cp_parser_error, cp_parser_name_lookup_error,
cp_parser_simulate_error, cp_parser_check_decl_spec,
cp_parser_check_decl_spec, cp_parser_non_integral_constant_expression,
cp_parser_diagnose_invalid_type_name,
cp_parser_parse_and_diagnose_invalid_type_name,
cp_parser_require_pragma_eol, cp_parser_make_typename_type,
cp_parser_string_literal, cp_parser_primary_expression,
cp_parser_primary_expression, cp_parser_unqualified_id,
cp_parser_nested_name_specifier_opt, cp_parser_postfix_expression,
cp_parser_postfix_dot_deref_expression, cp_parser_new_expression,
cp_parser_direct_new_declarator, cp_parser_builtin_offsetof,
cp_parser_label_for_labeled_statement, cp_parser_statement_seq_opt,
cp_parser_jump_statement, cp_parser_block_declaration,
cp_parser_simple_declaration, cp_parser_decl_specifier_seq,
cp_parser_function_specifier_opt, cp_parser_decltype,
cp_parser_mem_initializer_list, cp_parser_mem_initializer,
cp_parser_mem_initializer_id, cp_parser_template_parameter,
cp_parser_type_parameter, cp_parser_template_id, cp_parser_template_name,
cp_parser_template_argument): likewise.

From-SVN: r137716
41 files changed:
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/constructor1.C
gcc/testsuite/g++.dg/parse/error-column.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/error1.C
gcc/testsuite/g++.dg/parse/error10.C
gcc/testsuite/g++.dg/parse/error11.C
gcc/testsuite/g++.dg/parse/error12.C
gcc/testsuite/g++.dg/parse/error13.C
gcc/testsuite/g++.dg/parse/error14.C
gcc/testsuite/g++.dg/parse/error15.C
gcc/testsuite/g++.dg/parse/error16.C
gcc/testsuite/g++.dg/parse/error17.C
gcc/testsuite/g++.dg/parse/error18.C
gcc/testsuite/g++.dg/parse/error19.C
gcc/testsuite/g++.dg/parse/error2.C
gcc/testsuite/g++.dg/parse/error20.C
gcc/testsuite/g++.dg/parse/error21.C
gcc/testsuite/g++.dg/parse/error22.C
gcc/testsuite/g++.dg/parse/error23.C
gcc/testsuite/g++.dg/parse/error24.C
gcc/testsuite/g++.dg/parse/error25.C
gcc/testsuite/g++.dg/parse/error26.C
gcc/testsuite/g++.dg/parse/error27.C
gcc/testsuite/g++.dg/parse/error28.C
gcc/testsuite/g++.dg/parse/error29.C
gcc/testsuite/g++.dg/parse/error3.C
gcc/testsuite/g++.dg/parse/error30.C
gcc/testsuite/g++.dg/parse/error31.C
gcc/testsuite/g++.dg/parse/error4.C
gcc/testsuite/g++.dg/parse/error5.C
gcc/testsuite/g++.dg/parse/error6.C
gcc/testsuite/g++.dg/parse/error7.C
gcc/testsuite/g++.dg/parse/error8.C
gcc/testsuite/g++.dg/parse/error9.C
gcc/testsuite/g++.old-deja/g++.pt/niklas01a.C
gcc/testsuite/lib/g++.exp