Package: g++ Version: (Debian 4.7.3-14) 4.7.3 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++ compilerThis is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
. This is a dependency package providing the default GNU C++ compiler.-------------------------------------------------------------------------------
Attachment:
target-cpp-ccE2zJ9e.out.tar.bz2
Description: application/bzip