[Bug c++/78349] New: function returning std::basic_string<char> missing [abi:cxx11] tag
thighland at vectranetworks dot com
gcc-bugzilla@gcc.gnu.org
Mon Nov 14 17:33:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78349
Bug ID: 78349
Summary: function returning std::basic_string<char> missing
[abi:cxx11] tag
Product: gcc
Version: 5.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: thighland at vectranetworks dot com
Target Milestone: ---
test.cc:
#include <string>
template <class T>
class foo {
public:
std::basic_string<T> bar() {
return "";
}
};
foo<char> baz;
auto y = baz.bar();
Compiler command:
g++-5 -c -std=c++14 test.cc -o test.o
Result:
nm test.o |c++filt| grep bar
0000000000000000 W foo<char>::bar()
Expected:
nm test.o |c++filt| grep bar
0000000000000000 W foo<char>::bar[abi:cxx11]()
More information about the Gcc-bugs
mailing list