From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30667 invoked by alias); 24 Oct 2004 22:39:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 30657 invoked by uid 48); 24 Oct 2004 22:39:42 -0000 Date: Sun, 24 Oct 2004 22:39:00 -0000 Message-ID: <20041024223942.30656.qmail@sourceware.org> From: "karl at grebyn dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041020165328.18085.karl@grebyn.com> References: <20041020165328.18085.karl@grebyn.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug ada/18085] [Ada] - C++ interoperability sample program fails, 3.4.2, Linux 2.4.20-8, Red Hat 9.0 X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg02996.txt.bz2 List-Id: ------- Additional Comments From karl at grebyn dot com 2004-10-24 22:39 ------- Problem is that the documentation has an incorrect specification of the interface. By changing ex7.h to the following, the program works. //ex7.h class Origin { public: int a_value; }; class A : public Origin { public: void method1 (void); virtual void method2 (int v); A(); // int a_value; }; I leave it to the language lawyers to determine why some sort of error wasn't raised before... -- What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18085