From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Sidwell To: Cristi Vlasceanu Cc: wdjbugs@hightechinfo.com, bug-gcc@gnu.org Subject: Re: bug report Date: Fri, 31 Dec 1999 20:54:00 -0000 Message-id: <38612F5D.E7AE61E7@acm.org> References: <714D93E3EBA0D311A30100805FAF80850BC9EE@exchange> X-SW-Source: 1999-12n/msg00680.html List-Id: Cristi Vlasceanu wrote: > > // This code demonstrates a bug in the following compilers: > // > // MSVC++ 6.0 (sp3) > // Code Warrior 5.0 > // egcs 2.91.60 (system: Caldera Open Linux 2.1, command line: g++ main.cpp) > // Comeau 4.2.42 (online test drive) > // The error is promptly detected by Borland > // C++ Builder 4.0 > Fubar(42); g++ 2.95 reports, chris.C: In function `int main()': chris.C:45: cannot allocate an object of type `A' chris.C:45: since the following virtual functions are abstract: chris.C:18: void A::Func() const chris.C:22: in passing argument 1 of `Fubar(const A &)' so it appears to be fixed in the current release. nathan -- Dr Nathan Sidwell :: Computer Science Department :: Bristol University Never hand someone a gun unless you are sure where they will point it nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk