This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/7801: Internal compiler error in cp_expr_size, at cp/cp-lang.c


>Number:         7801
>Category:       c++
>Synopsis:       Internal compiler error in cp_expr_size, at cp/cp-lang.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 01 11:16:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Nicolai P Guba
>Release:        gcc-3.2.1
>Organization:
>Environment:
npg@eurotrash:/usr/local/src/kde/3.1/kdelibs$ gcc-3.2 -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.1/specs
Configured with: /mnt/data/gcc-3.1/gcc-3.2-3.2.1ds0/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-java-gc=boehm --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.2.1 20020830 (Debian prerelease)

autoconf environment for i686 Debian GNU/Linux

xport KDEDIR=/opt/kde/3.0.6
export QTDIR=/opt/qt/3.0.4
export LD_LIBRARY_PATH=$KDEDIR/lib:$QTDIR/lib
export PATH=$KDEDIR/bin:$QTDIR/bin:$PATH
export CC=gcc-3.2
export CXX=g++-3.2
export CFLAGS="-march=pentium4"
export CXXFLAGS="$CFLAGS"

alias kdeconfigure="CC=$CC CXX=$CXX CFLAGS=$CFLAGS CXXFLAGS=$CXXFLAGS ./configure --prefix=$KDEDIR --disable-debug"

export CVSROOT=:pserver:anonymous@anoncvs.kde.org:/home/kde

>Description:
On compiling the latest kdelibs cvs snapshot from kde.org, I
got the following error and request to file a report.

make[3]: Entering directory `/usr/local/src/kde/3.1/kdelibs/kdecore'
source='kkeyserver_x11.cpp' object='kkeyserver_x11.lo' libtool=yes \
depfile='.deps/kkeyserver_x11.Plo' tmpdepfile='.deps/kkeyserver_x11.TPlo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
/bin/sh ../libtool --silent --mode=compile --tag=CXX g++-3.2 -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I../libltdl -I../kdecore -I../kdeui -I../kio -I../kio/kio -I../kio/kfile -I.. -I/opt/qt/3.0.4/include -I/usr/X11R6/include -I/opt/kde/3.0.6/include  -I/usr/include/libart-2.0   -DQT_THREAD_SUPPORT  -D_REENTRANT   -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -fno-exceptions -fno-check-new  -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT  -c -o kkeyserver_x11.lo `test -f 'kkeyserver_x11.cpp' || echo './'`kkeyserver_x11.cpp

kkeyserver_x11.cpp: In function `void
   __static_initialization_and_destruction_0(int, int)':
kkeyserver_x11.cpp:73: Internal compiler error in cp_expr_size, at cp/cp-lang.c
   :130
Please submit a full bug report,
>How-To-Repeat:

autoconf arts with g++-3.2, compile and install.

cvs -d :pserver:anonymous@anoncvs.kde.org:/home/kde co kdelibs
autoconf with g++-3.2, compile and install.

error should just appear as stated above.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="kkeynative_x11.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="kkeynative_x11.cpp"

LyoKICAgIENvcHlyaWdodCAoQykgMjAwMSBFbGxpcyBXaGl0ZWhlYWQgPGVsbGlzQGtkZS5vcmc+
Cgog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JldHVybiBLS2V5U2VydmVyOjprZXlib2FyZEhhc1dpbktl
eSgpOyB9CnVpbnQgS0tleU5hdGl2ZTo6YWNjZWxNb2RNYXNrWCgpICAgICAgICAgICAgICAgeyBy
ZXR1cm4gS0tleVNlcnZlcjo6YWNjZWxNb2RNYXNrWCgpOyB9CgojZW5kaWYgLy8gUV9XU19YMTEK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]