Schüle Daniel
2006-06-08 21:21:53 UTC
hello all,
I couldn't find better subject
in last 2 days I had 2 broken builds
I was compiling astyle http://astyle.sourceforge.net/
and boehm gc http://www.hpl.hp.com/personal/Hans_Boehm/gc/
from sources
and both make breaked with error
error: extra qualification 'X::' on member 'bar'
(X and bar my names)
after I edited both files make could end successfully
this example is a simple reproduction of this behaviour
cat broken.cpp
#include <iostream>
struct X {
void foo(){}
void X::bar(){} // this line
};
int main(){
return 0;
}
Since I am using newest gcc 4.1.1 I was wondering
whether the above code was accepted by previous
gcc versions (3.4 and earlier) and who is right?
Regards, Daniel
I couldn't find better subject
in last 2 days I had 2 broken builds
I was compiling astyle http://astyle.sourceforge.net/
and boehm gc http://www.hpl.hp.com/personal/Hans_Boehm/gc/
from sources
and both make breaked with error
error: extra qualification 'X::' on member 'bar'
(X and bar my names)
after I edited both files make could end successfully
this example is a simple reproduction of this behaviour
cat broken.cpp
#include <iostream>
struct X {
void foo(){}
void X::bar(){} // this line
};
int main(){
return 0;
}
Since I am using newest gcc 4.1.1 I was wondering
whether the above code was accepted by previous
gcc versions (3.4 and earlier) and who is right?
Regards, Daniel