[Bug c++/45625] Template parameter name does not hide outer class scope's member name

2011-08-18 Thread dodji at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45625

Dodji Seketeli  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #5 from Dodji Seketeli  2011-08-18 
08:14:27 UTC ---
Fixed in trunk (4.7)


[Bug c++/45625] Template parameter name does not hide outer class scope's member name

2011-08-17 Thread dodji at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45625

--- Comment #4 from Dodji Seketeli  2011-08-18 
06:44:27 UTC ---
Author: dodji
Date: Thu Aug 18 06:44:22 2011
New Revision: 177846

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177846
Log:
PR c++/45625 - Template parm name doesn't hide outer class scope's member name

gcc/cp/

* pt.c (parameter_of_template_p): Handle comparison with DECLs of
template parameters as created by process_template_parm.

gcc/testsuite/

* g++.dg/lookup/hidden-var1.C: New test case.

Added:
trunk/gcc/testsuite/g++.dg/lookup/hidden-var1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog


[Bug c++/45625] Template parameter name does not hide outer class scope's member name

2011-08-17 Thread dodji at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45625

--- Comment #3 from Dodji Seketeli  2011-08-17 
18:57:52 UTC ---
Candidate fix posted to http://gcc.gnu.org/ml/gcc-patches/2011-08/msg01418.html


[Bug c++/45625] Template parameter name does not hide outer class scope's member name

2011-08-17 Thread dodji at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45625

Dodji Seketeli  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 |


[Bug c++/45625] Template parameter name does not hide outer class scope's member name

2010-09-22 Thread gcc at magfr dot user dot lysator dot liu dot se


--- Comment #2 from gcc at magfr dot user dot lysator dot liu dot se  
2010-09-22 15:58 ---
*** Bug 45747 has been marked as a duplicate of this bug. ***


-- 

gcc at magfr dot user dot lysator dot liu dot se changed:

   What|Removed |Added

 CC||gcc at magfr dot user dot
   ||lysator dot liu dot se


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



[Bug c++/45625] Template parameter name does not hide outer class scope's member name

2010-09-09 Thread redi at gcc dot gnu dot org


--- Comment #1 from redi at gcc dot gnu dot org  2010-09-09 23:51 ---
I agree the lookup in get_value should find the template parameter, not
Outer::value.

Here's a variation that should not compile, because &value should be invalid

struct Outer
{
static const int value = 1 ;

template< int value >
struct Inner
{
static const int* get_value() { return &value ; }
} ;
} ;

template class Outer::Inner<2>;


-- 

redi at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2010-09-09 23:51:26
   date||


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