This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21146] unable to resolve visible symbol
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 May 2005 18:54:29 -0000
- Subject: [Bug c++/21146] unable to resolve visible symbol
- References: <20050421110053.21146.boris@kolpackov.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2005-05-02 18:54 -------
What is going wrong is this: the name 'S' may refer to both the local
typedef in the base class 'A' as well as to the global structure '::S'.
If I write either
friend class A< A< ::S>::S>;
or
friend class A< ::S>;
then the code is accepted by gcc.
I don't know whether the ambiguity makes the code invalid. As a reference
point, icc accepts the code in strict mode.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21146