This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

typedef - bug?


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
typedef struct {
    // ...
}*str;

void proto (str struct_ptr);

int main (void)
{
    return 0;
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]