re PR c++/31754 (Improve column number accuracy in error messages)
authorDodji Seketeli <dseketel@redhat.com>
Fri, 11 Jul 2008 16:32:29 +0000 (16:32 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Fri, 11 Jul 2008 16:32:29 +0000 (18:32 +0200)
commit760b18ad400092ea513d159b825b3617247dce8c
tree1fe565658b383beee4cfa352a8dd8f952dd7c8ec
parentab2203551a5de8b2ce820426293bafde14330a69
re PR c++/31754 (Improve column number accuracy in error messages)

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

PR c++/31754
* cp-tree.h (struct cp_decl_specifier_seq): add a location field. It
carries the location of the primary type.
* parser.c (cp_parser_check_type_definition): update documentation.
(cp_parser_check_for_definition_in_return_type,
cp_parser_check_for_invalid_template_id,
cp_parser_set_decl_spec_type,
cp_parser_check_for_definition_in_return_type,
cp_parser_diagnose_invalid_type_name,
cp_parser_new_expression, cp_parser_explicit_instantiation,
cp_parser_type_specifier, cp_parser_simple_type_specifier,
cp_parser_omp_for_loop, cp_parser_pragma): use location in error messages.

From-SVN: r137721
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/semicolon.C
gcc/testsuite/g++.dg/parse/error15.C
gcc/testsuite/g++.old-deja/g++.brendan/crash16.C
gcc/testsuite/g++.old-deja/g++.law/ctors5.C
gcc/testsuite/g++.old-deja/g++.other/crash25.C