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

Bug#327346: g++-4.0: Internal compiler error in import_export_decl at cp/decl2.c:1741

Package: g++-4.0
Version: 4.0.1-6
Severity: important

When I compile the following file (definitions.cc):

template < class ELM_T > class b_array
  b_array() {}

template < class ELM_T > class bc_array: public b_array< ELM_T >
  bc_array() {}

  static ELM_T default_element;

template < char > char bc_array< char >::default_element = 0;

I get the following error message:

$ g++ -Wall -c definitions.cc -o definitions.o
definitions.cc:16: internal compiler error: in import_export_decl, at cp/decl2.c:1741
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>.

Since an internal error is reported, I guess this is a bug in gcc 4. BTW, the progam
that the above snippet is a part of compiles fine with the debian version of gcc 3.3.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=de_AT@euro, LC_CTYPE=de_AT@euro (charmap=ISO-8859-15) (ignored: LC_ALL set to de_AT@euro)

Versions of packages g++-4.0 depends on:
ii  gcc-4.0                       4.0.1-6    The GNU C compiler
ii  gcc-4.0-base                  4.0.1-6    The GNU Compiler Collection (base 
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an
ii  libstdc++6-4.0-dev            4.0.1-6    The GNU Standard C++ Library v3 (d

g++-4.0 recommends no packages.

-- no debconf information

Reply to: