This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug c++/14376] [3.4 regression] scoping problem in template child class
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: gcc-bugzilla at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org, Andrew Pinski <pinskia at physics dot uc dot edu>
- Date: Mon, 1 Mar 2004 17:27:55 -0800
- Subject: Re: [Bug c++/14376] [3.4 regression] scoping problem in template child class
- References: <20040302000759.14376.nick@ilm.com> <20040302012359.17309.qmail@sources.redhat.com>
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