Bug#148664: g++-3.1: can not compile code with std::assert in it
reassign 148664 glibc
thanks
Sean Perry writes:
> Package: g++-3.1
> Version: 1:3.1-2
> Severity: normal
>
> in modern C++ the style is:
>
> #include <cassert>
> std::assert(this_should_be_true);
>
> however this fails to compile under 3.1 claiming:
>
> parse error before `static_cast'
>
> my code is not casting. The cast is coming from assert.h provided by
> glibc. This may indeed be a glibc bug, if so feel free to reassign it.
>
> For now I can work around this by using the C header assert.h which
> causes assert.h to be interpreted as C, not C++ code.
>
> -- System Information
> Debian Release: 3.0
> Architecture: i386
> Kernel: Linux one 2.4.18 #1 Sat Mar 9 08:43:28 PST 2002 i686
> Locale: LANG=en_US, LC_CTYPE=en_US (ignored: LC_ALL set)
>
> Versions of packages g++-3.1 depends on:
> ii gcc-3.1 1:3.1-2 The GNU C compiler.
> ii gcc-3.1-base 1:3.1-2 The GNU Compiler Collection (base
> ii libc6 2.2.5-6 GNU C Library: Shared libraries an
> ii libstdc++4-dev 1:3.1-2 The GNU stdc++ library version 3 (
>
> -- no debconf information
>
>
>
> --
> To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
--
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: