Article View: net.lang.c++
Article #92Compiler bug report (#4)
From: Steve Rumsby
Date: Tue, 11 Mar 1986 15:48
Date: Tue, 11 Mar 1986 15:48
30 lines
1117 bytes
1117 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:
Mishandling of dynamic creation of an array of structs which have
a constructor.
Type cast missing for return value of _vec_new.
EXAMPLE:
struct foo {
foo() {}
};
main()
{
foo *bp = new foo[42]; // Oops...
}
OUTPUT:
CC buggy.c:
cc buggy.i -lC
"buggy.c", line 14: warning: illegal pointer combination
--
Steve Rumsby.
...!ukc!warwick!steve.
Technical Details
Message-ID:
<263@euclid.warwick.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!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!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!mcvax!ukc!warwick!steve From: steve@warwick.UUCP (Steve Rumsby) Newsgroups: net.lang.c++ Subject: Compiler bug report (#4) Message-ID: <263@euclid.warwick.UUCP> Date: Tue, 11-Mar-86 10:48:17 EST Article-I.D.: euclid.263 Posted: Tue Mar 11 10:48:17 1986 Date-Received: Sat, 15-Mar-86 18:53:15 EST Reply-To: steve@warwick.UUCP (Steve Rumsby) Distribution: net Organization: Maths Institute, Warwick University, UK Lines: 30