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

Bug#445268: g++-4.2: Minimal example to reproduce the bug

Package: g++-4.2
Version: 4.2.1-6
Followup-For: Bug #445268

  Here is a minimal example to reproduce the bug.

vdanjean@cayuga:/tmp/bug-g++$ cat bug.cpp 
class Format {
  virtual ~Format();

class ThreadFormat : public Format {
  static const ThreadFormat theformat;
  static const ThreadFormat* const format;

const ThreadFormat ThreadFormat::theformat(0);
const ThreadFormat* const ThreadFormat::format = &ThreadFormat::theformat;

vdanjean@cayuga:/tmp/bug-g++$ g++-4.2 -c -g bug.cpp 
bug.cpp:15: internal compiler error: in reference_to_unused, at
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.2/README.Bugs>.
vdanjean@cayuga:/tmp/bug-g++$ g++-4.1 -c -g bug.cpp 
vdanjean@cayuga:/tmp/bug-g++$ g++-4.2 -c  bug.cpp 

  Best regards,

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages g++-4.2 depends on:
ii  gcc-4.2                       4.2.1-6    The GNU C compiler
ii  gcc-4.2-base                  4.2.1-6    The GNU Compiler Collection (base 
ii  libc6                         2.6.1-5    GNU C Library: Shared libraries
ii  libstdc++6-4.2-dev            4.2.1-6    The GNU Standard C++ Library v3 (d

g++-4.2 recommends no packages.

-- no debconf information

Reply to: