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]

recent changes (on HEAD) broke STLport build


Hi all,

my nightly autobuild failed when compiling STLport. I was able to
reduce the error to this small testcase:

bash-2.05a$ cat dll_main.ii
class __new_alloc {
public:
  static void allocate() {}
};

template <class _Alloc>
class __debug_alloc : public _Alloc {
public:
  static void allocate();
};

template <class _Alloc>
void __debug_alloc<_Alloc>::allocate() {
  _Alloc::allocate();
}

template class __debug_alloc<__new_alloc>;

bash-2.05a$ gcc -c dll_main.ii
dll_main.ii: In static member function `static void
   __debug_alloc<_Alloc>::allocate() [with _Alloc = __new_alloc]':
dll_main.ii:17:   instantiated from here
dll_main.ii:13: error: `static void __debug_alloc<_Alloc>::allocate()
[with
   _Alloc = __new_alloc]' is inaccessible
dll_main.ii:14: error: within this context


The compile went well with the compiler built 24hours before. Looking
at the ChangeLog (available on request) I suspect it might be caused by
this patch:
http://gcc.gnu.org/ml/gcc-patches/2002-07/msg01911.html . This is only
a wild assumption, however. I will try to verify (or falsify) it by
backing out the patch and retrying.

Is this fixable within a short period of time or shall I file a bug
report so it won't be lost?

Regards,
Michael

PS: If it matters: System is i386-unknown-freebsd4.5.


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