public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <200107210109.f6L19P118259@quikbox.ca> (raw)

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


             reply	other threads:[~2001-07-20 18:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-20 18:16 quik [this message]
2001-07-21 13:52 nathan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200107210109.f6L19P118259@quikbox.ca \
    --to=quik@quikbox.ca \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).