Programs that depend on narrowing conversions in initializer lists
violate 8.5.4 item 3 of ISO/IEC 14882-2012. Currently these programs are
compiled successfully with warnings with and without a "-pedantic" flag
in C++ 2011 language mode.
Are there any drawbacks to having "-pedantic" mode reje
Thanks Andrew.
Yes, I recognized that the code was buggy and it works fine on x86 but not for
ARM v7 where alignment was mandatory. I was hoping that there would be an easy
way to cheat by using something like -mfix_cortexm3_ldrd but that didn't work
for me. So I fixed the code with a memcpy
On 12/24/2012 07:53 PM, Roger Cruz wrote:
>
>
> I am compiling this piece of code from an open source project that I
> wish not to have to change. The problem is that when compiled for
> ARM, it generates an LDRD instruction, which when executed, causes a
> bus error since the address in ptr is