https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61305

            Bug ID: 61305
           Summary: internal compiler error: in cp_tree_equal, at
                    cp/tree.c:2371
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: john.lindgren at aol dot com

Created attachment 32849
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32849&action=edit
C++ source

Trying to compile the attached C++ file gives an internal compiler error with
GCC 4.6.3 on Ubuntu 12.04 i386.  On a newer x86_64 system running Arch Linux,
GCC 4.9.0 compiles the same file without any problem, so it's possible that the
bug has already been fixed and needs to be backported to 4.6.x.

$ g++ -c -std=gnu++0x preferences.cc 
preferences.cc:236:21:   in constexpr expansion of ‘WidgetSpin(((const
char*)("Amplify all files:")), {(ValueType)1u, 0u, 0u, ((const
char*)"replay_gain_preamp")}, {-1.5e+1, 1.5e+1,
1.00000000000000005551115123125782702118158340454e-1, ((const char*)("dB"))},
(WidgetIsChild)1u)’
preferences.cc:241:1:   in constexpr expansion of
‘PreferencesWidget((WidgetType)4u, label, cfg.WidgetConfig::value,
cfg.WidgetConfig::callback, 0u, (child == (WidgetIsChild)1u),
cfg.WidgetConfig::type, cfg.WidgetConfig::section, cfg.WidgetConfig::name,
WidgetVariant(spin))’
preferences.cc:241:1: internal compiler error: in cp_tree_equal, at
cp/tree.c:2371
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccBkkPXe.out file, please attach this to
your bugreport.

$ gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ uname -a
Linux VirtualUbuntu 3.2.0-61-generic-pae #93-Ubuntu SMP Fri May 2 21:46:08 UTC
2014 i686 i686 i386 GNU/Linux

Reply via email to