This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: bug report
- To: Cristi Vlasceanu <CristiV at netzip dot com>
- Subject: Re: bug report
- From: Nathan Sidwell <nathan at acm dot org>
- Date: Wed, 22 Dec 1999 20:06:53 +0000
- CC: wdjbugs at hightechinfo dot com, bug-gcc at gnu dot org
- References: <714D93E3EBA0D311A30100805FAF80850BC9EE@exchange>
- Reply-To: nathan at cs dot bris dot ac dot uk
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