g++-4.8.4, Ubuntu 14.04, internal compiler error: in unify, at cp/pt.c
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-4.8 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I' running Ubuntu 14.04.3 LTS and have the package g++4:4.8.2-1ubuntu6 installed.
When trying to compile the following snippet I get an internal compiler error.
---
#include <string>
#include <iostream>
template <typename ... Args>
std::string build_string(
for (const auto& arg : args) {
// use arg to build string
}
return "foo";
}
int main() {
build_
}
---
The compiler flags were:
g++ -o bla --std=c++11 bla.cxx
The obtained error message is:
bla.cxx: In function ‘int main()’:
bla.cxx:17:49: internal compiler error: in unify, at cp/pt.c:17258
build_
Please submit a full bug report.
This is the preprocessed source.