public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jan at etpmod dot phys dot tue dot nl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/26102]  New: [4.2.0 regression] "using Base::member" nonsense
Date: Sun, 05 Feb 2006 12:29:00 -0000	[thread overview]
Message-ID: <bug-26102-2589@http.gcc.gnu.org/bugzilla/> (raw)

Consider the following reduced testcase:

template <class T> struct B1 { int i(); };

struct B2 { int i(); };

template <class T> struct C : public B1<T>, public B2
{
        using B2::i;
        void f()
        {
                i();    // fails, should be accepted
                i.i();  // accepted, should fail
        }
};

With today's trunk this gives:

t.cpp: In member function &#8216;void C<T>::f()&#8217;:
t.cpp:10: error: no match for call to &#8216;(B2) ()&#8217;

"i" seems to be resolved as the base class B2, 
as opposed to its member "i()"


-- 
           Summary: [4.2.0 regression] "using Base::member" nonsense
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jan at etpmod dot phys dot tue dot nl
 GCC build triplet: i686-suse-linux
  GCC host triplet: i686-suse-linux
GCC target triplet: i686-suse-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26102


             reply	other threads:[~2006-02-05 12:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-05 12:29 jan at etpmod dot phys dot tue dot nl [this message]
2006-02-05 14:50 ` [Bug c++/26102] [4.1/4.2 " pinskia at gcc dot gnu dot org
2006-02-14  9:13 ` mmitchel at gcc dot gnu dot org
2006-02-24  0:31 ` mmitchel at gcc dot gnu dot org
2006-05-25  2:38 ` mmitchel at gcc dot gnu dot org
2006-08-28  5:25 ` pinskia at gcc dot gnu dot org
2006-08-28 21:03 ` janis at gcc dot gnu dot org
2006-09-05 23:54 ` jason at gcc dot gnu dot org
2006-09-06  1:15 ` jason at gcc dot gnu dot org
2006-09-06  1:16 ` jason at gcc dot gnu dot org
2006-09-07 22:27 ` [Bug c++/26102] [4.1 " jason at gcc dot gnu dot org
2006-09-07 23:04 ` jason at gcc dot gnu dot org

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=bug-26102-2589@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).