www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/06/16/09:09:35

From: vincent <vincent AT datmuc DOT dat DOT de>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Internal compiller error, please contact ...
Date: Wed, 16 Jun 93 13:39:16 MEST

Hi compilling the folowing program gcc crashes with an internal error.

--------------------------- snip snip -------------------------------

#include	<iostream.h>

class A {
	void c ();
	static int a;
public:
	static void b (A &ar);
};

void A::c () { cout << "in c\n"; }

int A::a (1);
static void A::b (A &ar)
{
	cout << "in b, a == " << a << endl;
	ar. c ();
}

main ()
{
	A o1;

	void (*f) (A &ar) = &A::b;
	f (o1);

	return (0);
}

--------------------------- snip snip -------------------------------

ciao vincent AT datmuc DOT dat DOT de


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019