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++/14281] Regression in v3.4: friend class not working


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-25 04:44 -------
This is not a bug, ICC 6.0 rejects this code (but only when strict mode is turned on):
pr14281.cc
pr14281.cc(1): error #308: class "B::X" is inaccessible
  template <typename T> struct A : public T::X {};
                                             ^
          detected during instantiation of class "A<T> [with T=B]" at line 9

compilation aborted for pr14281.cc (code 2)

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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