This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14376] [3.4 regression] scoping problem in template child class
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Mar 2004 01:28:10 -0000
- Subject: [Bug c++/14376] [3.4 regression] scoping problem in template child class
- References: <20040302000759.14376.nick@ilm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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