This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bug report


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]