Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 1996 01:54:07 -0700
From:      Josh MacDonald <jmacd@CS.Berkeley.EDU>
To:        bug-g++@prep.ai.mit.edu
Cc:        freebsd-hackers@freebsd.org
Subject:   internal compiler error
Message-ID:  <199605160854.BAA29962@paris.CS.Berkeley.EDU>

next in thread | raw e-mail | index | archive | help

The following code,

#include <iostream.h>

enum SomeEnum {
    SomeValue
};

class SomeClass {
public:
    SomeClass(ostream&) :_tok(SomeValue) {}

private:
    SomeEnum _tok;
};

class AnythingWithADestructor {
public:
    ~AnythingWithADestructor() { }
};

SomeClass some_function_call()
{
    AnythingWithADestructor unused;
    return cout << "Hello world!";
}

causes an internal compiler error running gcc 2.7.2 on FreeBSD 2.2-stable.

I cannot reproduce this error on SunOS 4.1.3 or Linux and I have not
tried anywhere else.

-josh



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605160854.BAA29962>