[Bug c++/81371] Too many C++ templates output in build error
jg at jguk dot org
gcc-bugzilla@gcc.gnu.org
Mon Jul 10 06:20:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81371
--- Comment #3 from Jonny Grant <jg at jguk dot org> ---
Hello
Perhaps just std::__cxx11::basic_string or std::basic_string in the message?
But the char_traits and allocator aren't really needed are they? (I didn't
write them in the function declaration). I appreciate that a string contains
chars, and has an internal allocator, but I don't need to know this when
compiling..
So it could be:
main.cpp:(.text+0x41): undefined reference to
`myfunc(std::__cxx11::basic_string)'
It's worse when I have functions with many std::string parameters, and
std::vector
Regards, Jonny
More information about the Gcc-bugs
mailing list