C++ question (BUG?)

hellebrandt@stochastik.rwth-aachen.de hellebrandt@stochastik.rwth-aachen.de
Thu Jun 1 02:56:00 GMT 2000


gcc-2.95.2 and later snapshots happyly compile the following piece of
code. So does Sun's CC-5.0 :-). Compaq's cxx chokes on it. So is this
desired behaviour?

Regards

Martin


struct foo {
	static void bar();
};

void foo::foo::foo::bar()
{
}

int main()
{
	foo::bar();
}


-- 
Martin Hellebrandt               <hellebrandt@stochastik.rwth-aachen.de>
RWTH-Aachen, Wuellnerstr. 3      Tel.: +49 241 804776
D-52056 Aachen, Germany          Fax : +49 241 8888130



More information about the Gcc mailing list