This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/31754] Include column number along line in error messages main.cpp:5:38
- From: "dodji at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jul 2008 16:33:15 -0000
- Subject: [Bug other/31754] Include column number along line in error messages main.cpp:5:38
- References: <bug-31754-13581@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #16 from dodji at gcc dot gnu dot org 2008-07-11 16:33 -------
Subject: Bug 31754
Author: dodji
Date: Fri Jul 11 16:32:29 2008
New Revision: 137721
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=137721
Log:
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.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/other/semicolon.C
trunk/gcc/testsuite/g++.dg/parse/error15.C
trunk/gcc/testsuite/g++.old-deja/g++.brendan/crash16.C
trunk/gcc/testsuite/g++.old-deja/g++.law/ctors5.C
trunk/gcc/testsuite/g++.old-deja/g++.other/crash25.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31754