This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
A few bugs in gcc-2.95.1
- To: gcc-bugs at gcc dot gnu dot org
- Subject: A few bugs in gcc-2.95.1
- From: Almer Sefer <sefer at hotmail dot com>
- Date: Thu, 19 Aug 1999 22:57:17 +0300
- Cc: sefer at hotmail dot com
Your mailing list server seems to dislike my mail server :-( so here are
a few possible bugs I detected.
I'm running gcc 2.95.1 on RedHat6 Linux (on a pentium machine) with
kernel 2.2.10. It seems it won't recognize "volatile" inside templates.
a.cc: In method `test<int>::test()':
a.cc:27: instantiated from here
a.cc:17: `volatile' undeclared (first use this function)
a.cc:17: (Each undeclared identifier is reported only once
a.cc:17: for each function it appears in.)
a.cc:17: warning: qualifier ignored on asm
Resulting from the following code.
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
template<class ABC>
class test
{
public:
test();
};
template<class ABC>
test<ABC>::test()
{
fd_set fds;
FD_ZERO(&fds);
}
class test2:public test<int>
{
public:
test2();
};
test2::test2()
{
}
int main()
{
test2 t;
}
Another problem I found was when compiling vdk-0.64 (worked fine with
gcc-1.1.2), but gcc-2.95.1 shows the following errors:
canvas.cc:255: sorry, not implemented: initializer contains unrecognized
tree code
canvas.cc:255: default argument `((void (VDKCanvas::*)(bool)) 0)' uses
local variable ` /* decl error */ '
canvas.cc:255: sorry, not implemented: initializer contains unrecognized
tree code
canvas.cc:255: default argument `((bool (VDKCanvas::*)()) 0)' uses local
variable ` /* decl error */ '
canvas.cc:255: sorry, not implemented: initializer contains unrecognized
tree code
canvas.cc:255: default argument `((void (VDKCanvas::*)(bool)) 0)' uses
local variable ` /* decl error */ '
It seems to have some problems when using default initialization
arguments in templates.
vdk-0.64 is available from here:
http://www.programmers.net/artic/Motta/vdk/download.htm
Am I getting something wrong, or are these actually bugs, I'd be glad if
you could reply this email.
Thanks in advance,
Sefer.