🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by David Sher Mon, 15 Sep 1986 03:29
Bug in 1.0 compiler
#316
Author: David Sher
Date: Mon, 15 Sep 1986 03:29
26 lines
1170 bytes
This piece of code generates incorrect C code.  The fact that
it is incorrect C++ code is no excuse since it involves a type violation
that cfront should catch (an (int ()) is not an int).  We have not yet
recieved or installed the 1.1 C++ (I don't know whether we've got it yet).
The code is thus:
#include <stream.h>
#include <stdio.h>

class foo
    {
    int cat;
public:
    foo( int x , int y ) { cat = x + y; }
    const int sile() { return sile; }
    };

main()
    {
    foo x(1,7);
    cout << x.sile();
    }

-- 
-David Sher
sher@rochester
{allegra,seismo}!rochester!sher
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