[Bug c++/9783] [DR433] Can't forward reference class in argument to templated method.

2005-03-14 Thread lerdsuwa at gcc dot gnu dot org

--- Additional Comments From lerdsuwa at gcc dot gnu dot org  2005-03-14 
14:54 ---
Fixed in the mainline.

-- 
   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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


[Bug c++/9783] [DR433] Can't forward reference class in argument to templated method.

2005-03-14 Thread lerdsuwa at gcc dot gnu dot org


-- 
Bug 9783 depends on bug 4403, which changed state.

Bug 4403 Summary: incorrect class becomes a friend in template
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4403

   What|Old Value   |New Value

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

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


[Bug c++/9783] [DR433] Can't forward reference class in argument to templated method.

2005-03-14 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-14 
14:52 ---
Subject: Bug 9783

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-03-14 14:51:25

Modified files:
gcc/cp : ChangeLog name-lookup.c pt.c 
gcc/testsuite  : ChangeLog 
gcc/testsuite/g++.old-deja/g++.pt: inherit2.C 
Added files:
gcc/testsuite/g++.dg/template: friend34.C friend35.C 

Log message:
PR c++/4403
PR c++/9783, DR433
* name-lookup.c (pushtag): Skip template parameter scope when
scope is ts_global.  Don't push tag into template parameter
scope.
* pt.c (instantiate_class_template): Reorder friend class
template substitution to handle non-dependent friend class
that hasn't been previously declared.

* g++.dg/template/friend34.C: New test.
* g++.dg/template/friend35.C: Likewise.
* g++.old-deja/g++.pt/inherit2.C: Remove XFAIL's.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4662&r2=1.4663
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/name-lookup.c.diff?cvsroot=gcc&r1=1.112&r2=1.113
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.983&r2=1.984
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5161&r2=1.5162
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/friend34.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/friend35.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.old-deja/g++.pt/inherit2.C.diff?cvsroot=gcc&r1=1.7&r2=1.8



-- 


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


[Bug c++/9783] [DR433] Can't forward reference class in argument to templated method.

2005-03-13 Thread lerdsuwa at gcc dot gnu dot org

--- Additional Comments From lerdsuwa at gcc dot gnu dot org  2005-03-13 
16:48 ---
Patch submitted:
  http://gcc.gnu.org/ml/gcc-patches/2005-03/msg01294.html


-- 


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


[Bug c++/9783] [DR433] Can't forward reference class in argument to templated method.

2004-12-29 Thread lerdsuwa at gcc dot gnu dot org


-- 
   What|Removed |Added

   Target Milestone|--- |4.1.0


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


[Bug c++/9783] [DR433] Can't forward reference class in argument to templated method.

2004-12-29 Thread lerdsuwa at gcc dot gnu dot org

--- Additional Comments From lerdsuwa at gcc dot gnu dot org  2004-12-30 
07:38 ---
Patch for PR4403 also includes a fix to this bug
(the while-loop hunk in pushtag).

-- 
   What|Removed |Added

   Keywords||patch


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


[Bug c++/9783] [DR433] Can't forward reference class in argument to templated method.

2004-12-02 Thread lerdsuwa at gcc dot gnu dot org

--- Additional Comments From lerdsuwa at gcc dot gnu dot org  2004-12-02 
12:39 ---
This should be allowed according to DR433.

-- 
   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |lerdsuwa at gcc dot gnu dot
   |dot org |org
 Status|NEW |ASSIGNED
Summary|Can't forward reference |[DR433] Can't forward
   |class in argument to|reference class in argument
   |templated method.   |to templated method.


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