Kdevelop exposing bug in gcc 2.95?
Christopher Baus
christopher at baus.net
Thu Aug 5 10:18:16 BST 1999
Hi all,
Here's a bit more on gcc 2.95:
I believe the kdevelop code may have exposed a bug in 2.95, but I am
going to verify this tommorow. Anyway the following code fails under
2.95 with the following error:
test.cpp: 35: redeclaration of class B A
test.cpp:35: class B A previously declared here
This error makes absolutely no sense, and compiles fine under
M$ vc++. I'm going to submit it to the news groups to see what
gives.
class A
{
public:
A(int i)
{}
};
class B
{
public:
B(int i)
{}
B(A a, int i = 0x00)
{}
};
class C
{
public:
C(const B& b);
C(const B& b, const B& b1)
{}
};
int main()
{
C c( B(A(2)), B(A(3)) );
return 0;
}
./~christopher
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
http://www.baus.net/
"I was stirring my brandy with a nail, boys" -- Tom Waits
More information about the KDevelop
mailing list