[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#320240: g++ 4.0 doesn't compile ucontext.h on ia64



Package: gcc-4.0
Version: 4.0.1-2

$ g++ -v
Using built-in specs.
Target: ia64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --enable-nls --without-included-gettext --enable-threads=posix --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --with-system-libunwind --enable-checking=release ia64-linux-gnu
Thread model: posix
gcc version 4.0.1 (Debian 4.0.1-2)

$ cat ucontext.cc
#include <ucontext.h>

$ g++ ucontext.cc
/usr/include/sys/ucontext.h:49: error: array bound is not an integer constant

This ought to compile, but doesn't. The C compiler has no trouble with
it. If I compile my own version of 4.0.1 I have no such problem.

- Richard
-- 
Richard C. Bilson, Research Assistant   | School of Computer Science
rcbilson@plg.uwaterloo.ca               | University of Waterloo
http://plg.uwaterloo.ca/~rcbilson       | 200 University Avenue West
Office: DC 3548F Ph: (519)888-4567x4822 | Waterloo, Ontario, CANADA N2L 3G1



Reply to: