This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Building dejagnu with latest GCC
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Cc: jason at redhat dot com, gcc at gcc dot gnu dot org
- Date: 04 Aug 2002 13:43:25 +0200
- Subject: Re: Building dejagnu with latest GCC
- Organization: CodeSourcery, LLC
- References: <10208041128.AA03448@vlsi1.ultra.nyu.edu>
kenner@vlsi1.ultra.nyu.edu (Richard Kenner) writes:
[...]
| /usr/local/include/c++/3.2/streambuf:416: `std::basic_streambuf<_CharT,
| _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
Changing setbuf to pusetbuf solves this one.
| unit.cc:64: warning: ISO C++ forbids assignment of arrays
But, I can't solve this one in one line.
Here are the definitions that are flagged:
// somewhere in dejagnu.h
char *outstate[] = {
"FAILED: ",
"PASSED: ",
"UNTESTED: ",
"UNRESOLVED: "
};
// somewhere in unit.cc
char *os1[] = {
"FAI: ",
"PAS: ",
"UNT: ",
"UNR: "
};
char *os2[] = {
"FAILED: ",
"PASSED: ",
"UNTESTED: ",
"UNRESOLVED: "
};
int
main (int argc, char *argv[]) {
regex_t regex_pat;
// char **os2 = outstate;
outstate = os1;
Array assignment aren't even valid in C.
-- Gaby