OSDN Git Service

* parser.c (cp_parser_class_specifier): Set class location to that
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Apr 2010 21:13:07 +0000 (21:13 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:17:07 +0000 (14:17 +0900)
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

gcc/cp/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/local6.C

index 6dd7ab7..afb4614 100644 (file)
@@ -1,3 +1,11 @@
+2010-04-06  Taras Glek  <taras@mozilla.com>
+           Jason Merrill  <jason@redhat.com>
+
+       * 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.
+
 2010-04-06  Jason Merrill  <jason@redhat.com>
 
        PR c++/43648
 2010-04-06  Jason Merrill  <jason@redhat.com>
 
        PR c++/43648
index 7d60cba..7890972 100644 (file)
@@ -1,3 +1,45 @@
+2010-04-06  Jason Merrill  <jason@redhat.com>
+
+       * g++.dg/cpp0x/pr31437.C: Adjust error location.
+       * g++.dg/ext/attrib18.C: Likewise.
+       * g++.dg/ext/bitfield2.C: Likewise.
+       * g++.dg/ext/bitfield4.C: Likewise.
+       * g++.dg/ext/visibility/warn2.C: Likewise.
+       * g++.dg/ext/visibility/warn3.C: Likewise.
+       * g++.dg/gomp/pr26690-1.C: Likewise.
+       * g++.dg/inherit/covariant7.C: Likewise.
+       * g++.dg/init/synth2.C: Likewise.
+       * g++.dg/lookup/using7.C: Likewise.
+       * g++.dg/other/crash-4.C: Likewise.
+       * g++.dg/other/error13.C: Likewise.
+       * g++.dg/other/error20.C: Likewise.
+       * g++.dg/parse/crash31.C: Likewise.
+       * g++.dg/parse/error16.C: Likewise.
+       * g++.dg/parse/error19.C: Likewise.
+       * g++.dg/parse/error27.C: Likewise.
+       * g++.dg/parse/error28.C: Likewise.
+       * g++.dg/parse/fused-params1.C: Likewise.
+       * g++.dg/template/error2.C: Likewise.
+       * g++.dg/template/local6.C: Likewise.
+       * g++.dg/template/qualttp15.C: Likewise.
+       * g++.dg/warn/Wnvdtor-2.C: Likewise.
+       * g++.dg/warn/anonymous-namespace-3.C: Likewise.
+       * g++.old-deja/g++.benjamin/15309-1.C: Likewise.
+       * g++.old-deja/g++.brendan/crash29.C: Likewise.
+       * g++.old-deja/g++.eh/spec6.C: Likewise.
+       * g++.old-deja/g++.jason/crash3.C: Likewise.
+       * g++.old-deja/g++.jason/destruct2.C: Likewise.
+       * g++.old-deja/g++.law/ctors5.C: Likewise.
+       * g++.old-deja/g++.law/ctors9.C: Likewise.
+       * g++.old-deja/g++.mike/p3538a.C: Likewise.
+       * g++.old-deja/g++.mike/p3538b.C: Likewise.
+       * g++.old-deja/g++.other/struct1.C: Likewise.
+       * g++.old-deja/g++.other/volatile1.C: Likewise.
+       * g++.old-deja/g++.pt/crash36.C: Likewise.
+       * g++.old-deja/g++.pt/derived3.C: Likewise.
+       * g++.old-deja/g++.robertl/eb109.C: Likewise.
+       * g++.old-deja/g++.robertl/eb4.C: Likewise.
+
 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
 
        PR middle-end/43519
 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
 
        PR middle-end/43519
index 1fa39bc..6c5e8ac 100644 (file)
@@ -1,6 +1,6 @@
-template <class T> struct PCVector2 // { dg-message "note" }
+template <class T> struct PCVector2 // { dg-message "candidate is" }
 {
 {
-    template <class T2> PCVector2(const PCVector2<T> &cv) ; // { dg-message "candidate" }
+    template <class T2> PCVector2(const PCVector2<T> &cv) ;
 
     PCVector2<T> operator- (const PCVector2<T> &ov) const 
        { 
 
     PCVector2<T> operator- (const PCVector2<T> &ov) const 
        {