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++/36734] Incorrect access to tyedef in base of template class.



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


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