Article View: net.lang.c++
Article #100C++ bug report (#5)
From: steve
Date: Sat, 15 Mar 1986 13:43
Date: Sat, 15 Mar 1986 13:43
33 lines
1219 bytes
1219 bytes
This is one of a series of reports of bugs found in the C++ compiler here at
warwick. We have release 1.0 of the software.
DESCRIPTION
Cfront seems to get confused between return types and argument types if
you get them wrong. This only seems to happen for operator functions -
normal member functions provoke a correct error message.
EXAMPLE
struct foo {
operator=(foo &); // void return type missing
};
void
foo::operator=(foo &f) // Oops
{
}
main()
{
}
COMPILER OUTPUT
CC foo.c:
"foo.c", line 8: error: bad argument type for foo::operator =()
1 error
--
Steve Rumsby.
...!ukc!warwick!steve.
Technical Details
Message-ID:
<265@euclid.warwick.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!houxm!whuxl!whuxlm!akgua!gatech!seismo!mcvax!ukc!warwick!steveShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!houxm!whuxl!whuxlm!akgua!gatech!seismo!mcvax!ukc!warwick!steve From: steve@warwick.UUCP Newsgroups: net.lang.c++ Subject: C++ bug report (#5) Message-ID: <265@euclid.warwick.UUCP> Date: Sat, 15-Mar-86 08:43:01 EST Article-I.D.: euclid.265 Posted: Sat Mar 15 08:43:01 1986 Date-Received: Mon, 17-Mar-86 04:43:57 EST Reply-To: steve@warwick.UUCP (Steve Rumsby) Distribution: net Organization: Maths Institute, Warwick University, UK Lines: 33