* parser.c (cp_parser_class_specifier): Set class location to that
commitaad3e1b3626af198335f363a90c6ab79e3158f9a
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Apr 2010 21:13:07 +0000 (6 21:13 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Apr 2010 21:13:07 +0000 (6 21:13 +0000)
treebce7108409edea2346357626feb21cb76d8a5755
parent1fc000b2e38cbe6d62dac3affc089bdc5e5a90df
* parser.c (cp_parser_class_specifier): Set class location to that
of IDENTIFIER_NODE instead of '{' when possible.
* semantics.c (begin_class_definition): Do not overide locations
with less precise ones.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158030 138bc75d-0d04-0410-961f-82ee72b054a4
47 files changed:
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr31437.C
gcc/testsuite/g++.dg/ext/attrib18.C
gcc/testsuite/g++.dg/ext/bitfield2.C
gcc/testsuite/g++.dg/ext/bitfield4.C
gcc/testsuite/g++.dg/ext/visibility/warn2.C
gcc/testsuite/g++.dg/ext/visibility/warn3.C
gcc/testsuite/g++.dg/gomp/pr26690-1.C
gcc/testsuite/g++.dg/inherit/covariant7.C
gcc/testsuite/g++.dg/init/synth2.C
gcc/testsuite/g++.dg/lookup/using7.C
gcc/testsuite/g++.dg/other/crash-4.C
gcc/testsuite/g++.dg/other/error13.C
gcc/testsuite/g++.dg/other/error20.C
gcc/testsuite/g++.dg/parse/crash31.C
gcc/testsuite/g++.dg/parse/error16.C
gcc/testsuite/g++.dg/parse/error19.C
gcc/testsuite/g++.dg/parse/error27.C
gcc/testsuite/g++.dg/parse/error28.C
gcc/testsuite/g++.dg/parse/fused-params1.C
gcc/testsuite/g++.dg/template/error2.C
gcc/testsuite/g++.dg/template/local6.C
gcc/testsuite/g++.dg/template/qualttp15.C
gcc/testsuite/g++.dg/warn/Wnvdtor-2.C
gcc/testsuite/g++.dg/warn/anonymous-namespace-3.C
gcc/testsuite/g++.old-deja/g++.benjamin/15309-1.C
gcc/testsuite/g++.old-deja/g++.brendan/crash29.C
gcc/testsuite/g++.old-deja/g++.eh/spec6.C
gcc/testsuite/g++.old-deja/g++.jason/crash3.C
gcc/testsuite/g++.old-deja/g++.jason/destruct2.C
gcc/testsuite/g++.old-deja/g++.law/ctors5.C
gcc/testsuite/g++.old-deja/g++.law/ctors9.C
gcc/testsuite/g++.old-deja/g++.mike/p3538a.C
gcc/testsuite/g++.old-deja/g++.mike/p3538b.C
gcc/testsuite/g++.old-deja/g++.other/struct1.C
gcc/testsuite/g++.old-deja/g++.other/volatile1.C
gcc/testsuite/g++.old-deja/g++.pt/crash36.C
gcc/testsuite/g++.old-deja/g++.pt/derived3.C
gcc/testsuite/g++.old-deja/g++.robertl/eb109.C
gcc/testsuite/g++.old-deja/g++.robertl/eb4.C
libstdc++-v3/testsuite/19_diagnostics/error_category/cons/copy_neg.cc
libstdc++-v3/testsuite/27_io/ios_base/cons/copy_neg.cc
libstdc++-v3/testsuite/ext/type_traits/add_unsigned_integer_neg.cc
libstdc++-v3/testsuite/ext/type_traits/remove_unsigned_integer_neg.cc