🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Jonathan P. Leech Thu, 22 May 1986 11:50
Bug report
#205
Author: Jonathan P. Leech
Date: Thu, 22 May 1986 11:50
21 lines
1248 bytes
Organization : California Institute of Technology

    The following code:

	int spam() {
	    double (*z)[4] = (double (*)[4])0;
	}

    is legal C code. It is not legal C++ code (release 1.0),
generating the following error message:

    "junk.c", line 2: error:  z is undefined

    Declarations of this form seem not to cause any problem in member
functions of classes (the only other context in which I had occasion
to use them in C++ until tonight). This is a most annoying bug. Any
help in fixes or workarounds would greatly appreciated.
-- 
    Jon Leech (jon@csvax.caltech.edu || ...seismo!cit-vax!jon)
    Caltech Computer Science Graphics Group
    __@/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads