public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26102]  New: [4.2.0 regression] "using Base::member" nonsense
@ 2006-02-05 12:29 jan at etpmod dot phys dot tue dot nl
  2006-02-05 14:50 ` [Bug c++/26102] [4.1/4.2 " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: jan at etpmod dot phys dot tue dot nl @ 2006-02-05 12:29 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-09-07 23:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-05 12:29 [Bug c++/26102] New: [4.2.0 regression] "using Base::member" nonsense jan at etpmod dot phys dot tue dot nl
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

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).