Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101608 - crash-g++.cpp:10: internal compiler error: Segmentation fault
Summary: crash-g++.cpp:10: internal compiler error: Segmentation fault
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-06 22:02 UTC by Joshua M. Emele
Modified: 2005-08-07 01:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua M. Emele 2005-08-06 22:02:51 UTC
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/cc2f27bI.out file, please attach this to
your bugreport.

jemele@localhost r&d $ cat /tmp/cc2f27bI.out
// /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/cc1plus -quiet -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=5 -D_GNU_SOURCE crash-g++.cpp
-D__GNUG__=3 -quiet -dumpbase crash-g++.cpp -auxbase crash-g++ -o - -frandom-seed=0
# 1 "crash-g++.cpp"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "crash-g++.cpp"
template <int a, int b> struct T_factorial
{
    typedef T_factorial type;
    enum { value = a*b };
};
template <> struct T_factorial<1,0> { enum { value = 1 }; };
template <int n, typename T = T_factorial<n,n-1> > struct for_
{
  typedef typename T::type algorithm;
  enum { value = algorithm<n, for_< n-1 >::value>::value };
};

template <> struct for_<0> { enum { value = 0 }; };

int main()
{
  return 0;
}


Reproducible: Always
Steps to Reproduce:
1. g++ gcc-segfault.cpp

Actual Results:  
jemele@localhost r&d $ cat gcc-segfault
Script started on Sat Aug  6 21:59:34 2005
jemele@localhost ~/dev/r&d $ g++ crash-g++.cpp
crash-g++.cpp:10: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/ccoEKLuC.out file, please attach this to
your bugreport.
jemele@localhost ~/dev/r&d $
Script done on Sat Aug  6 21:59:41 2005
jemele@localhost r&d $


Expected Results:  
I expected a.out or a compile-time error -- Instead I receieved instructions to
file a bug with http://bugs.gentoo.org; here I am.

localhost ~ # emerge info 2>&1 | tee emerge.info
Gentoo Base System version 1.6.12
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r0, 2.6.11-gentoo-r3 i686)
=================================================================
System uname: 2.6.11-gentoo-r3 i686 Intel(R) Pentium(R) M processor 1.70GHz
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl eds emboss
encode esd fam firebird flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk
gtk2 imlib ipv6 java jpeg kde ldap libg++ libwww mad mikmod motif mozilla mp3
mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pdflib perl png postgres
python qt quicktime readline samba sdl spell ssl tcpd tiff truetype
truetype-fonts type1-fonts vorbis xml2 xmms xv zlib userland_GNU kernel_linux
elibc_glibc"Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS,
PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-08-07 01:08:39 UTC
What are you trying to compile? What ebuild is this bug about?