public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: gdr@gcc.gnu.org To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, gdr@gcc.gnu.org, nobody@gcc.gnu.org, stuart@personalrobots.com Subject: Re: c++/3662: Incorrect warnings with overridden virtual functions in template class Date: Sun, 12 Aug 2001 08:04:00 -0000 [thread overview] Message-ID: <20010812150418.30417.qmail@sourceware.cygnus.com> (raw) Synopsis: Incorrect warnings with overridden virtual functions in template class Responsible-Changed-From-To: unassigned->gdr Responsible-Changed-By: gdr Responsible-Changed-When: Sun Aug 12 08:04:18 2001 Responsible-Changed-Why: See below. State-Changed-From-To: open->closed State-Changed-By: gdr State-Changed-When: Sun Aug 12 08:04:18 2001 State-Changed-Why: Well, actually the issue is subtile. In the instantiation of the base class CList<int>, GCC discovers the declaration of a virtual function and since every virtual function is used even if it -appears- unused (a language definition requirement) GCC proceeds to check semantics restruictions, thus the warning. Arguably, GCC could use a type-based analysis to discover that the base class function won't be used and suppress the warning but I guess that is a feature request. -- Gaby http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3662&database=gcc
next reply other threads:[~2001-08-12 8:04 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-08-12 8:04 gdr [this message] -- strict thread matches above, loose matches on Subject: below -- 2001-07-12 9:16 stuart
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=20010812150418.30417.qmail@sourceware.cygnus.com \ --to=gdr@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@gcc.gnu.org \ --cc=stuart@personalrobots.com \ /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: linkBe 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).