]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c-ada-spec.c (dump_ada_double_name): Fix pasto.
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 6 Mar 2015 10:16:33 +0000 (10:16 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 6 Mar 2015 10:16:33 +0000 (10:16 +0000)
* c-ada-spec.c (dump_ada_double_name): Fix pasto.

Co-Authored-By: Jonathan Wakely <jwakely.gcc@gmail.com>
From-SVN: r221232

gcc/c-family/ChangeLog
gcc/c-family/c-ada-spec.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/dump-ada-spec-3.C

index 003eeeb6e8f68a95da33dea73619b9f002dd7517..f5003324497578e6436d946b11c8f6356b344932 100644 (file)
@@ -1,3 +1,12 @@
+2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * g++.dg/other/dump-ada-spec-3.C: Remove include and adjust.
+
+2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
+            Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * c-ada-spec.c (dump_ada_double_name): Fix pasto.
+
 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR ada/65319
index 22027797c654cea75839f6aaf9784b59f4ca71fb..f23869ed14fc5365a37a3d22ad85a8a249218b6a 100644 (file)
@@ -1392,7 +1392,7 @@ dump_ada_double_name (pretty_printer *buffer, tree t1, tree t2, const char *s)
 
   pp_underscore (buffer);
 
-  if (DECL_NAME (t1))
+  if (DECL_NAME (t2))
     pp_ada_tree_identifier (buffer, DECL_NAME (t2), t2, false);
   else
     {
index 8169c0cda466e6bd582f2cebdf5b6bc1437e791c..0008927443942bc8719747f071e09c520f05ea8f 100644 (file)
@@ -1,3 +1,7 @@
+2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * g++.dg/other/dump-ada-spec-3.C: Remove include and adjust.
+
 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
 
        * g++.dg/other/dump-ada-spec-3.C: New test.
index 3d5e3f10dfcc5435cca12adac447bbd82cf1594b..ae4985cb594c87043c0cafbf096ade3249a06dcc 100644 (file)
@@ -1,8 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-fdump-ada-spec" } */
 
-#include <iostream>
-
 using namespace std;
 
 class Base {
@@ -14,7 +12,6 @@ class Base {
 };
 
 void Base::Primitive () {
-  cout << "C++ Primitive  " << this->My_V << "\n";
 }
 
 Base::Base () {