This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Strange problem while compiling some cpp program with g++ 3.1.
- From: Tim Prince <tprince at computer dot org>
- To: <pananth at india dot hp dot com>, <gcc-bugs at gcc dot gnu dot org>
- Cc: "Arun Lakshmipathy (E-mail)" <arunl at india dot hp dot com>,"Zameer Majeed (E-mail)" <zameer at india dot hp dot com>
- Date: Sun, 21 Jul 2002 07:29:45 -0700
- Subject: Re: Strange problem while compiling some cpp program with g++ 3.1.
- References: <000001c230bf$5a018110$6d754c0f@india.hp.com>
- Reply-to: tprince at computer dot org
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