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

* [Bug c++/48656] [C++0x] cannot call member function without object
  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 ` harald at gigawatt dot nl
  2011-04-17 21:26 ` paolo.carlini at oracle dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: harald at gigawatt dot nl @ 2011-04-17 21:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Harald van Dijk <harald at gigawatt dot nl> 2011-04-17 21:14:07 UTC ---
Er... That's bug 47172, not bug 47174.


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

* [Bug c++/48656] [C++0x] cannot call member function without object
  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
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-04-17 21:26 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dodji at gcc dot gnu.org

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-04-17 21:25:48 UTC ---
Dodji, can you have a look? Thanks.


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

* [Bug c++/48656] [4.6/4.7 regression] [C++0x] cannot call member function without object
  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 ` jason at gcc dot gnu.org
  2011-04-28  6:08 ` dodji at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-04-28  3:09 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |4.5.1
           Keywords|                            |rejects-valid
   Last reconfirmed|                            |2011.04.28 03:09:18
                 CC|                            |jason at gcc dot gnu.org
     Ever Confirmed|0                           |1
            Summary|[C++0x] cannot call member  |[4.6/4.7 regression]
                   |function without object     |[C++0x] cannot call member
                   |                            |function without object
   Target Milestone|---                         |4.6.1
      Known to fail|                            |4.6.0, 4.7.0

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-28 03:09:18 UTC ---
Dodji, please take a look at this bug, it's a regression.


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

* [Bug c++/48656] [4.6/4.7 regression] [C++0x] cannot call member function without object
  2011-04-17 21:10 [Bug c++/48656] New: [C++0x] cannot call member function without object harald at gigawatt dot nl
                   ` (2 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dodji at gcc dot gnu.org @ 2011-04-28  6:08 UTC (permalink / raw)
  To: gcc-bugs

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

Dodji Seketeli <dodji at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|dodji at gcc dot gnu.org    |
         AssignedTo|unassigned at gcc dot       |dodji at gcc dot gnu.org
                   |gnu.org                     |


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

* [Bug c++/48656] [4.6 regression] [C++0x] cannot call member function without object
  2011-04-17 21:10 [Bug c++/48656] New: [C++0x] cannot call member function without object harald at gigawatt dot nl
                   ` (3 preceding siblings ...)
  2011-04-28  6:08 ` dodji at gcc dot gnu.org
@ 2011-04-28 18:11 ` dodji at gcc dot gnu.org
  2011-04-28 18:12 ` [Bug c++/48656] [4.6/4.7 " dodji at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dodji at gcc dot gnu.org @ 2011-04-28 18:11 UTC (permalink / raw)
  To: gcc-bugs

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

Dodji Seketeli <dodji at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.6/4.7 regression]        |[4.6 regression] [C++0x]
                   |[C++0x] cannot call member  |cannot call member function
                   |function without object     |without object

--- Comment #5 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-04-28 18:10:28 UTC ---
Fixed in trunk (4.7).  My boostrap on 4.6 is still on going ...


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

* [Bug c++/48656] [4.6/4.7 regression] [C++0x] cannot call member function without object
  2011-04-17 21:10 [Bug c++/48656] New: [C++0x] cannot call member function without object harald at gigawatt dot nl
                   ` (4 preceding siblings ...)
  2011-04-28 18:11 ` [Bug c++/48656] [4.6 " dodji at gcc dot gnu.org
@ 2011-04-28 18:12 ` 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
  7 siblings, 0 replies; 9+ messages in thread
From: dodji at gcc dot gnu.org @ 2011-04-28 18:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-04-28 18:08:48 UTC ---
Author: dodji
Date: Thu Apr 28 18:08:43 2011
New Revision: 173123

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173123
Log:
Fix PR c++/48656

gcc/cp/

    * semantics.c (finish_call_expr): Don't forget BASELINK nodes when
    considering call expressions involving a member function.

gcc/testsuite/

    * gcc/testsuite/g++.dg/template/inherit7.C: New test case.

Added:
    trunk/gcc/testsuite/g++.dg/template/inherit7.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/48656] [4.6 regression] [C++0x] cannot call member function without object
  2011-04-17 21:10 [Bug c++/48656] New: [C++0x] cannot call member function without object harald at gigawatt dot nl
                   ` (5 preceding siblings ...)
  2011-04-28 18:12 ` [Bug c++/48656] [4.6/4.7 " dodji at gcc dot gnu.org
@ 2011-04-28 19:48 ` dodji at gcc dot gnu.org
  2011-04-28 20:07 ` dodji at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: dodji at gcc dot gnu.org @ 2011-04-28 19:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-04-28 19:46:37 UTC ---
Author: dodji
Date: Thu Apr 28 19:46:34 2011
New Revision: 173131

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173131
Log:
Fix PR c++/48656

gcc/cp/

    * semantics.c (finish_call_expr): Don't forget BASELINK nodes when
    considering call expressions involving a member function.

gcc/testsuite/

    * gcc/testsuite/g++.dg/template/inherit7.C: New test case.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/template/inherit7.C
Modified:
    branches/gcc-4_6-branch/gcc/cp/ChangeLog
    branches/gcc-4_6-branch/gcc/cp/semantics.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog


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

* [Bug c++/48656] [4.6 regression] [C++0x] cannot call member function without object
  2011-04-17 21:10 [Bug c++/48656] New: [C++0x] cannot call member function without object harald at gigawatt dot nl
                   ` (6 preceding siblings ...)
  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
  7 siblings, 0 replies; 9+ messages in thread
From: dodji at gcc dot gnu.org @ 2011-04-28 20:07 UTC (permalink / raw)
  To: gcc-bugs

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

Dodji Seketeli <dodji at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-04-28 20:06:45 UTC ---
Fixed in 4.6


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