This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

C++ question (BUG?)



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]