On Jan 12, 2006, at 1:40 PM, Jon BLOOMFIELD wrote:
Can somebody tell me whether there is a known bug in g++ 4.0.1 wrt
scoping
of members of a template base class. The following contrived test case
generates a compiler error on 4.0.1, complaining that 'a' is not in the
scope scope of D<T>::f()
....
s.cxx: In member function 'void D<T>::f()':
s.cxx:12: error: 'a' was not declared in this scope
This code was accepted just fine on gcc 3.2.3, so could be a new bug,
or a
deliberate change to the scoping rules ?
This is not a bug in gcc see http://gcc.gnu.org/gcc-3.4/changes.html
Notice
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this
message by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying or distribution of the message,
or
any action taken by you in reliance on it, is prohibited and may be
unlawful. If you have received this message in error, please delete
it
and contact the sender immediately. Thank you.
Please also read http://gcc.gnu.org/lists.html:
Please do not include or reference confidentiality notices, like:
The referring document contains privileged and confidential
information. If you are not the intended recipient you must not
disseminate, copy or take any action in reliance on it, and we request
that you notify companyname immediately.
Such disclaimers are inappropriate for mail sent to public lists. If
your company automatically adds something like this to outgoing mail,
and you can't convince them to stop, you might consider using a free
web-based e-mail account.