This is an old pasto spotted by Jonathan with the help of Coverity.
Tested on x86_64-suse-linux, applied on the mainline and 4.9 branch.
2015-03-06 Eric Botcazou <ebotca...@adacore.com>
Jonathan Wakely <jwakely....@gmail.com>
* c-ada-spec.c (dump_ada_double_name): Fix pasto.
2015-03-06 Eric Botcazou <ebotca...@adacore.com>
* g++.dg/other/dump-ada-spec-3.C: Remove include and adjust.
--
Eric Botcazou
Index: c-family/c-ada-spec.c
===================================================================
--- c-family/c-ada-spec.c (revision 221213)
+++ c-family/c-ada-spec.c (working copy)
@@ -1390,7 +1390,7 @@ dump_ada_double_name (pretty_printer *bu
pp_underscore (buffer);
- if (DECL_NAME (t1))
+ if (DECL_NAME (t2))
pp_ada_tree_identifier (buffer, DECL_NAME (t2), t2, false);
else
{
Index: testsuite/g++.dg/other/dump-ada-spec-3.C
===================================================================
--- testsuite/g++.dg/other/dump-ada-spec-3.C (revision 221202)
+++ testsuite/g++.dg/other/dump-ada-spec-3.C (working copy)
@@ -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 () {