I have the following SSCCE:
#include
#include
void foo(const std::string &a) {
std::cout << a << std::endl
I strongly suspect a g++ bug.
Here are some notes:
std::string
with any elementary type, e.g., int
still does not work internal compiler error: in make_decl_rtl, at varasm.c:1304
...
Please submit a full bug report, with preprocessed source if appropriate.
Please include the complete backtrace with any bug report. See http://gcc.gnu.org/bugs.html for instructions.