Strange problem while compiling some cpp program with g++ 3.1.

Tim Prince tprince@computer.org
Sun Jul 21 11:11:00 GMT 2002


On Sunday 21 July 2002 07:03, Ananth Prabhu wrote:
> Hi,
>
> I am finding following wanings/errors when compiling a cpp program with g++
> version 3.1. I am working on a Itanium server.
> Is this some configuration problem ??  I am not able to make out what
> exactly the warning/error messages are pointing out?


> /buildtools/include/g++-v3/bits/stl_alloc.h:479: warning: cast from `
>    char*' to `std::__default_alloc_template<true, 0>::_Obj*' increases
> required
>    alignment of target type

That is the only warning I see, and it appears justified.  char* may point to 
any address.  Any object which involves other than char elements 
will get you an Address Error if you have not taken care of this otherwise.

-- 
Tim Prince



More information about the Gcc-bugs mailing list