public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48656] New: [C++0x] cannot call member function without object
@ 2011-04-17 21:10 harald at gigawatt dot nl
  2011-04-17 21:14 ` [Bug c++/48656] " harald at gigawatt dot nl
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: harald at gigawatt dot nl @ 2011-04-17 21:10 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [C++0x] cannot call member function without object
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: harald@gigawatt.nl


Very similar to bug 47174:

struct A {
 int f();
 int f(int);
};
template <typename> struct B : A
{
};
template <typename T> struct C : B<T>
{
 void g() {
   A::f();
 }
};

This still fails with GCC 4.6.0 and -std=c++0x:
a.ii: In member function ‘void C<T>::g()’:
a.ii:11:11: error: cannot call member function ‘int A::f()’ without object


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

end of thread, other threads:[~2011-04-28 20:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-17 21:10 [Bug c++/48656] New: [C++0x] cannot call member function without object harald at gigawatt dot nl
2011-04-17 21:14 ` [Bug c++/48656] " harald at gigawatt dot nl
2011-04-17 21:26 ` paolo.carlini at oracle dot com
2011-04-28  3:09 ` [Bug c++/48656] [4.6/4.7 regression] " jason at gcc dot gnu.org
2011-04-28  6:08 ` dodji at gcc dot gnu.org
2011-04-28 18:11 ` [Bug c++/48656] [4.6 " dodji at gcc dot gnu.org
2011-04-28 18:12 ` [Bug c++/48656] [4.6/4.7 " dodji at gcc dot gnu.org
2011-04-28 19:48 ` [Bug c++/48656] [4.6 " dodji at gcc dot gnu.org
2011-04-28 20:07 ` dodji at gcc dot gnu.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).