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 00:47:33 +0000 (09:47 +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/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/local6.C

index 59b0e40..782c674 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
index 1c47ded..5cf4b69 100644 (file)
@@ -2409,9 +2409,6 @@ begin_class_definition (tree t, tree attributes)
       pushtag (make_anon_name (), t, /*tag_scope=*/ts_current);
     }
 
-  /* Update the location of the decl.  */
-  DECL_SOURCE_LOCATION (TYPE_NAME (t)) = input_location;
-
   if (TYPE_BEING_DEFINED (t))
     {
       t = make_class_type (TREE_CODE (t));
index 31103d1..c0b4618 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
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 
        {