[Bug c++/36734] Incorrect access to tyedef in base of template class.

2008-08-21 Thread gcc-bugzilla at contacts dot eelis dot net


--- Comment #1 from gcc-bugzilla at contacts dot eelis dot net  2008-08-21 
11:35 ---
It seems access control for templates is broken at a more basic level than the
reporter's testcase suggests; witness the following simplified testcase:

  class A { typedef int X; };
  template typename struct B { A::X x; };
  Bint b;

Again, g++ does not complain. Comeau rightly rejects the code, complaining that
A::X is inaccessible.


-- 

gcc-bugzilla at contacts dot eelis dot net changed:

   What|Removed |Added

 CC||gcc-bugzilla at contacts dot
   ||eelis dot net


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36734



[Bug c++/36734] Incorrect access to tyedef in base of template class.

2008-08-21 Thread gcc-bugzilla at contacts dot eelis dot net


--- Comment #2 from gcc-bugzilla at contacts dot eelis dot net  2008-08-21 
11:53 ---
Most likely related to bug 26693.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36734



[Bug c++/36734] Incorrect access to tyedef in base of template class.

2008-08-21 Thread paolo dot carlini at oracle dot com


--- Comment #3 from paolo dot carlini at oracle dot com  2008-08-21 11:58 
---
Yes.

*** This bug has been marked as a duplicate of 26693 ***


-- 

paolo dot carlini at oracle dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36734