[aspectc-user] keyword volatile and bid structures
Matthias Urban
matthias.urban at pure-systems.com
Thu Oct 23 17:43:09 CEST 2008
Hi,
> I'm using AspectC++ for static introductions (via slice classes)
> to existing structures, that contain bitstructures. The weaving
> works fine, but when I try to compile, it fails with:
>
> avr-gcc -o main -mmcu=at90can128 -O2 main.cc
> Led.ah: In member function 'const void* LED0::__attr(unsigned int) const':
> Led.ah:26: error: invalid conversion from 'const volatile void*' to
> 'const void*'
> Led.ah:26: error: attempt to take address of bit-field structure member
> 'LED0::LEDPIN'
> Led.ah:26: error: attempt to take address of bit-field structure member
> 'LED0::LEDDDR'
> Led.ah:26: error: attempt to take address of bit-field structure member
> 'LED0::LEDPORT'
>
> I'm using:
> ac++ 1.0pre4 svn (Jul 9 2008) and
I'm using: ac++ 1.0pre4 svn (Mar 29 2008).
I tried your example with the following commands:
> ac++ -p. -c main.cc -I . -a Led.ah -o main.acc
> gcc -o prog -x c main.acc
No errors occurred. How did you weave the code? I'll definitely try it
also with a newer ac++, maybe something is broken between March and July.
Regards,
Matthias
More information about the aspectc-user
mailing list