#751024 g++ 4.7.3 - Internal compiler error

Package:
g++
Source:
gcc-defaults
Description:
GNU C++ compiler
Submitter:
yuta aizawa
Date:
2014-09-20 23:51:10 UTC
Severity:
normal
#751024#5
Date:
2014-06-09 15:38:18 UTC
From:
To:
Hello.
I tried to build a 'target.cpp'.

[ build
]----------------------------------------------------------------------
$ g++ -std=c++11 -Wall target.cpp
‘
Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccE2zJ9e.out file, please attach
this to your bugreport.
-------------------------------------------------------------------------------


sources here.

[ target.cpp
]-----------------------------------------------------------------
#include <iostream>
#include <vector>

int main() {
     enum Numbers { ONE, };
     std::vector<std::vector<Numbers>> rows;// <-- type of 'enum'
     std::vector<int> cols(1);// <-- type of 'int'
     rows.emplace_back(cols);// <-- 'Internal compiler error'
     return 0;
}
------------------------------------------------------------------------------- please add error message. environs. ------------------------------------------------------------------------------- $ uname -sor Linux 3.2.0-4-686-pae GNU/Linux $ dpkg --status g++ Package: g++ Status: install ok installed Priority: optional Section: devel Installed-Size: 34 Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org> Architecture: i386 Source: gcc-defaults (1.120) Version: 4:4.7.2-1 Provides: c++-compiler Depends: cpp (>= 4:4.7.2-1), gcc (>= 4:4.7.2-1), g++-4.7 (>= 4.7.2-1~), gcc-4.7 (>= 4.7.2-1~) Suggests: g++-multilib Description: GNU C++ compiler This is the GNU C++ compiler, a fairly portable optimizing compiler for C++. . This is a dependency package providing the default GNU C++ compiler.
-------------------------------------------------------------------------------
#751024#10
Date:
2014-09-20 17:28:35 UTC
From:
To:
I asked upstream about this issue. The discussion starts at
http://lists.gnu.org/archive/html/xboard-devel/2014-09/msg00044.html . The
fix is to use -lgf (-loadGameFile) option in front of the filename. So a
typical command would look like

rajulocal@hogwarts:~/chess$ xboard -fcp crafty -initialMode Analysis -lgf
KamarajuKusumanchi_vs_paconov_2014_04_02.pgn

The addition of "-initialMode Analysis" will start xboard directly in the
Analysis mode saving couple of seconds in the overall process.

Since this is not a bug but rather my lack of understanding of how xboard
works... I am closing this bug.

thanks
--
Kamaraju S. Kusumanchi
http://malayamaarutham.blogspot.com/

#751024#17
Date:
2014-09-20 23:48:24 UTC
From:
To:
reopen 751024
thanks

Sorry. Instead of closing bug 743716, I closed this one by accident. I am
reopening the bug.

raju