[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] cannot cast 'const struct something' to 'struct something
From: |
Mirar |
Subject: |
[Tinycc-devel] cannot cast 'const struct something' to 'struct something' |
Date: |
Tue, 16 Mar 2004 07:32:26 +0100 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.2 (gnu/linux) |
I see this bug has been reported before. Is it being worked on?
Anyway, test example:
----cut----
struct something
{
int x;
};
struct something array[10];
void set_something(int i,const struct something * from)
{
array[i]=*from;
}
int main()
{
struct something foo;
foo.x=17;
set_something(&foo);
return 0;
}
----end cut----
tcctest.c:10: cannot cast 'const struct something' to 'struct something'
The above should be a legal operation.
Would be happy if this could be resolved...
/Mirar
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Tinycc-devel] cannot cast 'const struct something' to 'struct something',
Mirar <=