From mboxrd@z Thu Jan 1 00:00:00 1970 From: quik@quikbox.ca To: gcc-gnats@gcc.gnu.org Subject: c++/3755: Inaccurate error message when the compiler tries to instantiate a virtual class using the constructor of a subclass that it does not know about since it was not included. Date: Fri, 20 Jul 2001 18:16:00 -0000 Message-id: <200107210109.f6L19P118259@quikbox.ca> X-SW-Source: 2001-07/msg00571.html List-Id: >Number: 3755 >Category: c++ >Synopsis: Inaccurate error message when the compiler tries to instantiate a virtual class using the constructor of a subclass that it does not know about since it was not included. >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Jul 20 18:16:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Antonio M D'souza >Release: 3.0 20010430 (prerelease) >Organization: University of Waterloo >Environment: System: FreeBSD quikbox.ca 4.3-STABLE FreeBSD 4.3-STABLE #1: Wed May 9 22:53:16 EDT 2001 alex@rn-respw2a14.uwaterloo.ca:/usr/obj/usr/src/sys/QUIK i386 host: i386-portbld-freebsd4.3 build: i386-portbld-freebsd4.3 target: i386-portbld-freebsd4.3 configured with: ./../gcc-20010430/configure --disable-nls --with-gnu-as --with-gnu-ld --with-gxx-include-dir=/usr/local/lib/gcc-lib/i386-portbld-freebsd4.3/3.0/include/g++ --disable-shared --prefix=/usr/local i386-portbld-freebsd4.3 >Description: I think that the error msg given when attempting the source file shown below is so confusing as to classify as a bug. >How-To-Repeat: Stick this code into a file and try to compile it: class UI { public: UI::UI() {} int member; }; int main(void) { UI *ui = new GUI; } >Fix: add an include statement for GUI.h >Release-Note: >Audit-Trail: >Unformatted: