[Bug c++/14376] [3.4 regression] scoping problem in template child class

pinskia at physics dot uc dot edu gcc-bugzilla@gcc.gnu.org
Tue Mar 2 01:28:00 GMT 2004


------- Additional Comments From pinskia at physics dot uc dot edu  2004-03-02 01:28 -------
Subject: Re:  [3.4 regression] scoping problem in template child class


On Mar 1, 2004, at 17:23, nick at ilm dot com wrote:

>
> ------- Additional Comments From nick at ilm dot com  2004-03-02 01:23 
> -------
> Subject: Re:  [3.4 regression] scoping problem in template child class
>
> I'm reading through 14.6.2 in the standard, and what it seems to say
> is the lookup of x should be done at instantiation time, during which
> it can examine the scope of the parent class.  Am I reading it 
> incorrectly?
>
> -nick

No the part of the look is done at declaration time and the other part 
is done
at instantiation time.  If the function or variable was dependent on 
the template
parameter it would be looked up at instantiation time.


Thanks,
Andrew Pinski



-- 


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



More information about the Gcc-bugs mailing list