[Bug 591235] New: GCC crash
http://bugzilla.novell.com/show_bug.cgi?id=591235 http://bugzilla.novell.com/show_bug.cgi?id=591235#c0 Summary: GCC crash Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: i686 OS/Version: SuSE Linux 10.1 Status: NEW Severity: Major Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: nlitke@rhythm.com QAContact: qa@suse.de Found By: Customer Blocker: No When compiling this: template <typename T> struct Foo { typedef T* ArrayType; typedef T ValueType; }; template <typename T> typename Foo<T>::ValueType Foo<T>::ArrayType::operator[](int i) { return i; } with this command: % g++ -c crash.cpp this happens: crash.cpp:8: internal compiler error: in is_ancestor, at cp/name-lookup.c:2292 with this system: % g++ -v Using built-in specs. Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.3 --enable-linux-futex --without-system-libunwind --with-cpu=generic --build=x86_64-suse-linux Thread model: posix gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux) % uname -a Linux lid704 2.6.27.23-0.1-default #1 SMP 2009-05-26 17:02:05 -0400 x86_64 x86_64 x86_64 GNU/Linux -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=591235 http://bugzilla.novell.com/show_bug.cgi?id=591235#c Philipp Thomas <pth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pth@novell.com AssignedTo|pth@novell.com |rguenther@novell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=591235 http://bugzilla.novell.com/show_bug.cgi?id=591235#c1 Richard Guenther <rguenther@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Richard Guenther <rguenther@novell.com> 2010-03-26 10:04:59 UTC --- The source is invalid, ArrayType isn't a Class or Namespace, thus Foo<T>::ArrayType is not a valid scope for ::operantor[]. The crash has been fixed in GCC 4.4 and thus openSUSE 11.2. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com