This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
C++ question (BUG?)
- To: gcc at gcc dot gnu dot org
- Subject: C++ question (BUG?)
- From: hellebrandt at stochastik dot rwth-aachen dot de
- Date: Thu, 1 Jun 2000 11:56:08 +0200 (CEST)
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