public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18681] [3.4/4.0/4.1 Regression] template friend declaration not recognized
       [not found] <bug-18681-7154@http.gcc.gnu.org/bugzilla/>
@ 2005-10-05  5:13 ` pinskia at gcc dot gnu dot org
  2005-10-31  1:53 ` mmitchel at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-05  5:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #21 from pinskia at gcc dot gnu dot org  2005-10-05 05:13 -------
: Search converges between 2002-07-14-trunk (#81) and 2002-07-21-trunk (#82).


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |3.4.0 4.0.0 4.1.0 3.3.3
      Known to work|                            |3.0.4


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


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

* [Bug c++/18681] [3.4/4.0/4.1 Regression] template friend declaration not recognized
       [not found] <bug-18681-7154@http.gcc.gnu.org/bugzilla/>
  2005-10-05  5:13 ` [Bug c++/18681] [3.4/4.0/4.1 Regression] template friend declaration not recognized pinskia at gcc dot gnu dot org
@ 2005-10-31  1:53 ` mmitchel at gcc dot gnu dot org
  2006-02-24  0:25 ` [Bug c++/18681] [3.4/4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-31  1:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #22 from mmitchel at gcc dot gnu dot org  2005-10-31 01:53 -------
Leaving as P2.  

I'd like to have another think about this issue before 4.1.  However, I'm not
overly optimistic that we can find a good solution quickly.  

In looking at this example:

template <typename T_>
class C1
{
    typedef typename C2<T_>::T_PAR_TYPE T_PAR;
    struct S1
    {
        T_PAR par1;                       // #1
        typename C2<T_>::T_PAR_TYPE par2; // #2
    };
    ...
};

we might need to avoid using the same TYPENAME_TYPE node for TYPENAME_TYPEs
that are typedef'd and TYPENAME_TYPEs that are not.  Note that for "int", we do
have separate type nodes for all "int" typedefs, so we would in fact be able to
tell how we got at a particular typedef.

However, this may be another case of the more general problem that we don't
preserve enough information about how we obtained a type or declaration to do
full access-checking in template instantiations.


-- 


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


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

* [Bug c++/18681] [3.4/4.0/4.1/4.2 Regression] template friend declaration not recognized
       [not found] <bug-18681-7154@http.gcc.gnu.org/bugzilla/>
  2005-10-05  5:13 ` [Bug c++/18681] [3.4/4.0/4.1 Regression] template friend declaration not recognized pinskia at gcc dot gnu dot org
  2005-10-31  1:53 ` mmitchel at gcc dot gnu dot org
@ 2006-02-24  0:25 ` mmitchel at gcc dot gnu dot org
  2006-05-25  2:33 ` [Bug c++/18681] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-02-24  0:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #23 from mmitchel at gcc dot gnu dot org  2006-02-24 00:25 -------
This issue will not be resolved in GCC 4.1.0; retargeted at GCC 4.1.1.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.3                       |4.1.1


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


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

* [Bug c++/18681] [4.0/4.1/4.2 Regression] template friend declaration not recognized
       [not found] <bug-18681-7154@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2006-02-24  0:25 ` [Bug c++/18681] [3.4/4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
@ 2006-05-25  2:33 ` mmitchel at gcc dot gnu dot org
  2006-06-30 21:24 ` jason at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-25  2:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #24 from mmitchel at gcc dot gnu dot org  2006-05-25 02:32 -------
Will not be fixed in 4.1.1; adjust target milestone to 4.1.2.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.1                       |4.1.2


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


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

* [Bug c++/18681] [4.0/4.1/4.2 Regression] template friend declaration not recognized
       [not found] <bug-18681-7154@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2006-05-25  2:33 ` [Bug c++/18681] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
@ 2006-06-30 21:24 ` jason at gcc dot gnu dot org
  2006-06-30 21:25 ` jason at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-06-30 21:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #25 from jason at gcc dot gnu dot org  2006-06-30 21:13 -------
Fixing this is simplified by DR 45:
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#45

Under DR 45, S1 now has all the access of its enclosing class.  We should be
able to just implement that DR and this problem will go away.


-- 


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


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

* [Bug c++/18681] [4.0/4.1/4.2 Regression] template friend declaration not recognized
       [not found] <bug-18681-7154@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2006-06-30 21:24 ` jason at gcc dot gnu dot org
@ 2006-06-30 21:25 ` jason at gcc dot gnu dot org
  2006-07-05 19:44 ` [Bug c++/18681] [4.0/4.1/4.2 Regression] [DR 45] " jason at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-06-30 21:25 UTC (permalink / raw)
  To: gcc-bugs



-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-10-22 03:39:17         |2006-06-30 21:24:25
               date|                            |


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


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

* [Bug c++/18681] [4.0/4.1/4.2 Regression] [DR 45] template friend declaration not recognized
       [not found] <bug-18681-7154@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2006-06-30 21:25 ` jason at gcc dot gnu dot org
@ 2006-07-05 19:44 ` jason at gcc dot gnu dot org
  2006-07-05 20:40 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-07-05 19:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #26 from jason at gcc dot gnu dot org  2006-07-05 19:44 -------
Subject: Bug 18681

Author: jason
Date: Wed Jul  5 19:44:28 2006
New Revision: 115208

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115208
Log:
        PR c++/18681
        * friend.c (is_friend): Fix DR 45 implementation.

Added:
    trunk/gcc/testsuite/g++.dg/lookup/friend10.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/friend.c
    trunk/gcc/cp/search.c


-- 


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


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

* [Bug c++/18681] [4.0/4.1/4.2 Regression] [DR 45] template friend declaration not recognized
       [not found] <bug-18681-7154@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2006-07-05 19:44 ` [Bug c++/18681] [4.0/4.1/4.2 Regression] [DR 45] " jason at gcc dot gnu dot org
@ 2006-07-05 20:40 ` jason at gcc dot gnu dot org
  2006-07-05 20:41 ` jason at gcc dot gnu dot org
  2006-07-06  2:15 ` jason at gcc dot gnu dot org
  9 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-07-05 20:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #27 from jason at gcc dot gnu dot org  2006-07-05 20:40 -------
Subject: Bug 18681

Author: jason
Date: Wed Jul  5 20:40:06 2006
New Revision: 115209

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115209
Log:
        PR c++/18681
        * friend.c (is_friend): Fix DR 45 implementation.

Added:
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/lookup/friend10.C
      - copied unchanged from r115208,
trunk/gcc/testsuite/g++.dg/lookup/friend10.C
Modified:
    branches/gcc-4_0-branch/gcc/cp/ChangeLog
    branches/gcc-4_0-branch/gcc/cp/friend.c
    branches/gcc-4_0-branch/gcc/cp/search.c


-- 


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


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

* [Bug c++/18681] [4.0/4.1/4.2 Regression] [DR 45] template friend declaration not recognized
       [not found] <bug-18681-7154@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2006-07-05 20:40 ` jason at gcc dot gnu dot org
@ 2006-07-05 20:41 ` jason at gcc dot gnu dot org
  2006-07-06  2:15 ` jason at gcc dot gnu dot org
  9 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-07-05 20:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #28 from jason at gcc dot gnu dot org  2006-07-05 20:40 -------
Subject: Bug 18681

Author: jason
Date: Wed Jul  5 20:40:49 2006
New Revision: 115210

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115210
Log:
        PR c++/18681
        * friend.c (is_friend): Fix DR 45 implementation.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/lookup/friend10.C
      - copied unchanged from r115208,
trunk/gcc/testsuite/g++.dg/lookup/friend10.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/friend.c
    branches/gcc-4_1-branch/gcc/cp/search.c


-- 


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


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

* [Bug c++/18681] [4.0/4.1/4.2 Regression] [DR 45] template friend declaration not recognized
       [not found] <bug-18681-7154@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2006-07-05 20:41 ` jason at gcc dot gnu dot org
@ 2006-07-06  2:15 ` jason at gcc dot gnu dot org
  9 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-07-06  2:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #29 from jason at gcc dot gnu dot org  2006-07-06 02:15 -------
feexd


-- 

jason at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2006-07-06  2:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-18681-7154@http.gcc.gnu.org/bugzilla/>
2005-10-05  5:13 ` [Bug c++/18681] [3.4/4.0/4.1 Regression] template friend declaration not recognized pinskia at gcc dot gnu dot org
2005-10-31  1:53 ` mmitchel at gcc dot gnu dot org
2006-02-24  0:25 ` [Bug c++/18681] [3.4/4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
2006-05-25  2:33 ` [Bug c++/18681] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
2006-06-30 21:24 ` jason at gcc dot gnu dot org
2006-06-30 21:25 ` jason at gcc dot gnu dot org
2006-07-05 19:44 ` [Bug c++/18681] [4.0/4.1/4.2 Regression] [DR 45] " jason at gcc dot gnu dot org
2006-07-05 20:40 ` jason at gcc dot gnu dot org
2006-07-05 20:41 ` jason at gcc dot gnu dot org
2006-07-06  2:15 ` 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).