bug in 19980418

Mirko Streckenbach mirko@ramz.ing.tu-bs.de
Tue Apr 21 04:51:00 GMT 1998


Hello!

egcs-19980418 (linux, redhat 5) doesn't compile the following code:

---
struct _GtkWidget;

typedef struct _GtkWidget GtkWidget;

extern "C" {

typedef struct _GtkWidget GtkWidget;

struct _GtkWidget // line 9
{                 // line 10
  int state;
};

}
---

this error occurs:

---
test.cc:10: redefinition of `struct _GtkWidget'
test.cc:1: previous definition here
---

egcs-980328 did compile it successfully.


ciao,
mirko.





More information about the Gcc-bugs mailing list