Xref: utzoo comp.lang.c++:6191 gnu.g++.bug:1375 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!orion.oac.uci.edu!uci-ics!gateway From: rfg@paris.ics.uci.edu (Ron Guilmette) Newsgroups: comp.lang.c++,gnu.g++.bug Subject: Use of class/struct/union tags within member function headers Message-ID: <25B8F283.20002@paris.ics.uci.edu> Date: 20 Jan 90 23:21:38 GMT Organization: UC Irvine Department of ICS Lines: 20 // g++ (1.36.1) recognizes the name of a containing class within // the header of a member function declaration or definition, // but only sometimes. // In the following example, the class tag `c0' is unrecognized within // the sizeof(). // Curiously enough, Cfront 2.0 seems to have trouble with all three // occurances of the class name in the member function header, but // it seems only able to issue two error messages about these three // occurances no matter what. // Are any of these three uses of `c0' legal? If so, which ones? // Do Cfront 2.0 and/or g++ 1.36.1 have bugs? class c0 { c0 member_function (c0 arg1, int arg2 = sizeof (c0)) { } };