This is the mail archive of the
mailing list for the GCC project.
Re: Building dejagnu with latest GCC
Jason Merrill <email@example.com> writes:
| Does -fpermissive help?
-fpermissive doesn't help for the accessibility problem
_Traits>* std::basic_streambuf<_CharT, _Traits>::setbuf(_CharT*, long int)
[with _CharT = char, _Traits = std::char_traits<char>]' is protected
unit.cc:53: within this context
The piece of code incrimintated is:
streambuf *sb = cout.rdbuf();
streambuf::setbuf() is protected and is there only for derived
classes. For public use, the right function is streambuf::pubsetbuf().
Kenner, please could try to replace
and report what happens?