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

gcc-bugzilla at contacts dot eelis dot net gcc-bugzilla@gcc.gnu.org
Thu Aug 21 11:36:00 GMT 2008



------- 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; };
  B<int> 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



More information about the Gcc-bugs mailing list