gcc-3.4.2 failed to compile some codes.
Mike Frysinger
vapier at gentoo.org
Fri Jan 6 23:44:10 UTC 2006
On Friday 06 January 2006 17:00, Lei Sun wrote:
> I have some C++ applications which can be compiled with gcc-3.3.2, but
> failed with gcc-3.4.2, the toochain is created using buildroot,
> uClibc-0.9.28.
has nothing to do with uClibc
> The piece of code that failed looks like this
>
> myclass::myclass(int size)
> {
> m_msg = new (MsgClass *)[size];
> ...
> }
> Compiler error is :
> error: array bound forbidden after parenthesized type-id
as the error states, you cannot use []
-mike
More information about the uClibc
mailing list