typedef - bug?

Christian Matuszewski matuszew@informatik.uni-halle.de
Mon Sep 27 04:16:00 GMT 1999


Hi folks,

while compiling the following code with g++ error.cc

typedef struct {
    // ...
}*str;

void proto (str struct_ptr);

int main (void)
{
    return 0;
}

i get the following message:
error.cc:5: non-local function `void proto({anonymous struct} *)' uses
anonymous type

with my old version (2.7.2.3) this problem does not occur.

my specs:
g++ -v:
gcc version 2.95.1 19990816 (release)
uname -a:
SunOS veritas 5.6 Generic_105181-05 sun4u sparc SUNW,Ultra-1

best wishes,

Christian


More information about the Gcc-bugs mailing list