[Bug ada/18085] [Ada] - C++ interoperability sample program fails, 3.4.2, Linux 2.4.20-8, Red Hat 9.0

karl at grebyn dot com gcc-bugzilla@gcc.gnu.org
Sun Oct 24 22:39:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list