This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
typedef - bug?
- To: gcc-bugs at gcc dot gnu dot org
- Subject: typedef - bug?
- From: Christian Matuszewski <matuszew at informatik dot uni-halle dot de>
- Date: Mon, 27 Sep 1999 13:16:43 +0200
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;
}