public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/8355] befriending a template specialization in another namespace
       [not found] <bug-8355-2650@http.gcc.gnu.org/bugzilla/>
@ 2005-10-22 13:56 ` lerdsuwa at gcc dot gnu dot org
  2005-11-18 20:08 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2005-10-22 13:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from lerdsuwa at gcc dot gnu dot org  2005-10-22 13:56 -------
Won't work on it for a long while.


-- 

lerdsuwa at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|lerdsuwa at gcc dot gnu dot |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW


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


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

* [Bug c++/8355] befriending a template specialization in another namespace
       [not found] <bug-8355-2650@http.gcc.gnu.org/bugzilla/>
  2005-10-22 13:56 ` [Bug c++/8355] befriending a template specialization in another namespace lerdsuwa at gcc dot gnu dot org
@ 2005-11-18 20:08 ` pinskia at gcc dot gnu dot org
  2005-11-19  0:11 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-18 20:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2005-11-18 20:08 -------
*** Bug 24933 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |seefeld at sympatico dot ca


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


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

* [Bug c++/8355] befriending a template specialization in another namespace
       [not found] <bug-8355-2650@http.gcc.gnu.org/bugzilla/>
  2005-10-22 13:56 ` [Bug c++/8355] befriending a template specialization in another namespace lerdsuwa at gcc dot gnu dot org
  2005-11-18 20:08 ` pinskia at gcc dot gnu dot org
@ 2005-11-19  0:11 ` mmitchel at gcc dot gnu dot org
  2005-11-19  2:26 ` mmitchel at gcc dot gnu dot org
  2005-11-19  2:38 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-11-19  0:11 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/8355] befriending a template specialization in another namespace
       [not found] <bug-8355-2650@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2005-11-19  0:11 ` mmitchel at gcc dot gnu dot org
@ 2005-11-19  2:26 ` mmitchel at gcc dot gnu dot org
  2005-11-19  2:38 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-11-19  2:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from mmitchel at gcc dot gnu dot org  2005-11-19 02:26 -------
Subject: Bug 8355

Author: mmitchel
Date: Sat Nov 19 02:25:55 2005
New Revision: 107207

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107207
Log:
        PR c++/8355
        * decl.c (grokfndecl): Set up DECL_TEMPLATE_INFO before calling
        set_decl_namespace.
        * name-lookup.c (set_decl_namespace): 
        PR c++/8355
        * g++.dg/template/friend39.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/template/friend39.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/8355] befriending a template specialization in another namespace
       [not found] <bug-8355-2650@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2005-11-19  2:26 ` mmitchel at gcc dot gnu dot org
@ 2005-11-19  2:38 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-11-19  2:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from mmitchel at gcc dot gnu dot org  2005-11-19 02:38 -------
Fixed in 4.1.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.0


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


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

* [Bug c++/8355] befriending a template specialization in another namespace
       [not found] <20021025084602.8355.zach@cs.uni-bonn.de>
                   ` (3 preceding siblings ...)
  2004-10-01 17:46 ` gianni at mariani dot ws
@ 2004-10-02 10:40 ` lerdsuwa at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2004-10-02 10:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From lerdsuwa at gcc dot gnu dot org  2004-10-02 10:40 -------
I think so.  The function grokdeclarator simply don't
work correctly for such cases.  If it can pass the right
tree node to do_friend, the rest of friend codes
should work.

-- 


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


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

* [Bug c++/8355] befriending a template specialization in another namespace
       [not found] <20021025084602.8355.zach@cs.uni-bonn.de>
                   ` (2 preceding siblings ...)
  2004-05-26 11:39 ` pinskia at gcc dot gnu dot org
@ 2004-10-01 17:46 ` gianni at mariani dot ws
  2004-10-02 10:40 ` lerdsuwa at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: gianni at mariani dot ws @ 2004-10-01 17:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gianni at mariani dot ws  2004-10-01 17:46 -------

gcc 3.4.2 complains about this as well:


namespace A {
template <typename T>
void func ()
{
    static T instance;
}
}


namespace blah {

class MyClass {
    friend void A::func<MyClass> ();

    MyClass () {} // private
};

}


int main ()
{
    A::func<blah::MyClass>();
}

friend_test.cpp:15: error: `void A::func()' should have been declared inside `A'

I suspect this is the same bug ?




-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gianni at mariani dot ws


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


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

* [Bug c++/8355] befriending a template specialization in another namespace
       [not found] <20021025084602.8355.zach@cs.uni-bonn.de>
  2003-06-08 11:27 ` lerdsuwa@gcc.gnu.org
  2003-08-13 13:50 ` lerdsuwa at gcc dot gnu dot org
@ 2004-05-26 11:39 ` pinskia at gcc dot gnu dot org
  2004-10-01 17:46 ` gianni at mariani dot ws
  2004-10-02 10:40 ` lerdsuwa at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-26 11:39 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
   Last reconfirmed|2003-12-26 03:04:56         |2004-05-25 14:09:05
               date|                            |


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


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

* [Bug c++/8355] befriending a template specialization in another namespace
       [not found] <20021025084602.8355.zach@cs.uni-bonn.de>
  2003-06-08 11:27 ` lerdsuwa@gcc.gnu.org
@ 2003-08-13 13:50 ` lerdsuwa at gcc dot gnu dot org
  2004-05-26 11:39 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2003-08-13 13:50 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


lerdsuwa at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4                         |---


------- Additional Comments From lerdsuwa at gcc dot gnu dot org  2003-08-13 13:50 -------
It needs some major code reorganization.


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

* [Bug c++/8355] befriending a template specialization in another namespace
       [not found] <20021025084602.8355.zach@cs.uni-bonn.de>
@ 2003-06-08 11:27 ` lerdsuwa@gcc.gnu.org
  2003-08-13 13:50 ` lerdsuwa at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: lerdsuwa@gcc.gnu.org @ 2003-06-08 11:27 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


lerdsuwa@gcc.gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2003-04-30 00:00:00         |2003-06-08 11:27:06
               date|                            |


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

end of thread, other threads:[~2005-11-19  2:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-8355-2650@http.gcc.gnu.org/bugzilla/>
2005-10-22 13:56 ` [Bug c++/8355] befriending a template specialization in another namespace lerdsuwa at gcc dot gnu dot org
2005-11-18 20:08 ` pinskia at gcc dot gnu dot org
2005-11-19  0:11 ` mmitchel at gcc dot gnu dot org
2005-11-19  2:26 ` mmitchel at gcc dot gnu dot org
2005-11-19  2:38 ` mmitchel at gcc dot gnu dot org
     [not found] <20021025084602.8355.zach@cs.uni-bonn.de>
2003-06-08 11:27 ` lerdsuwa@gcc.gnu.org
2003-08-13 13:50 ` lerdsuwa at gcc dot gnu dot org
2004-05-26 11:39 ` pinskia at gcc dot gnu dot org
2004-10-01 17:46 ` gianni at mariani dot ws
2004-10-02 10:40 ` lerdsuwa 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).