This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/21146] unable to resolve visible symbol


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]