[Patch, Fortran] PR 45004: Segfault with allocatable scalars and move_alloc

Salvatore Filippone salvatore.filippone@uniroma2.it
Mon Jul 26 11:27:00 GMT 2010


Hi,
I am getting this build error from make bootstrap:

/home/travel/GCC/BUILDS/obj-dev/./prev-gcc/xgcc -B/home/travel/GCC/BUILDS/obj-dev/./prev-gcc/ -B/usr/local/gnudev/x86_64-unknown-linux-gnu/bin/ -B/usr/local/gnudev/x86_64-unknown-linux-gnu/bin/ -B/usr/local/gnudev/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/gnudev/x86_64-unknown-linux-gnu/include -isystem /usr/local/gnudev/x86_64-unknown-linux-gnu/sys-include    -c  -DIN_GCC_FRONTEND -g -O2 -gtoggle -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H -I. -Ifortran -I../../gcc-dev/gcc -I../../gcc-dev/gcc/fortran -I../../gcc-dev/gcc/../include -I../../gcc-dev/gcc/../libcpp/include  -I../../gcc-dev/gcc/../libdecnumber -I../../gcc-dev/gcc/../libdecnumber/bid -I../libdecnumber   -I/usr/include/libelf  ../../gcc-dev/gcc/fortran/trans.c -o fortran/trans.o
../../gcc-dev/gcc/fortran/trans.c: In function ‘trans_code’:
../../gcc-dev/gcc/fortran/trans.c:1096:6: error: enum conversion when passing argument 3 of ‘gfc_trans_class_assign’ is invalid in C++ [-Werror=c++-compat]
../../gcc-dev/gcc/fortran/trans-stmt.h:36:6: note: expected ‘gfc_intrinsic_op’ but argument is of type ‘gfc_exec_op’
../../gcc-dev/gcc/fortran/trans.c:1107:6: error: enum conversion when passing argument 3 of ‘gfc_trans_class_assign’ is invalid in C++ [-Werror=c++-compat]
../../gcc-dev/gcc/fortran/trans-stmt.h:36:6: note: expected ‘gfc_intrinsic_op’ but argument is of type ‘gfc_exec_op’
cc1: all warnings being treated as errors

make[3]: *** [fortran/trans.o] Error 1
make[3]: *** Waiting for unfinished jobs....




Salvatore 



More information about the Fortran mailing list