1 Reply Latest reply: Jan 29, 2012 9:31 AM by Steve.Clamage-Oracle RSS

    Incorrect access checking prevents out-of-class member definitions

      Solaris Studio 12.3 compiler fails to compile code like that:
      class C {
          typedef void (*Fun)();
          template<Fun f> void call();
      template<C::Fun f>  // CC complains: line 7: Error, inaccessible: C::Fun is not accessible from file level.
      void C::call()
      In this context C::Fun should be accessible because we are defining C's member function

      This bug prevents compiling WebKit module bundled with Qt-4.8.0 (JSParser.cpp contains code like that)