https://llvm.org/bugs/show_bug.cgi?id=30943
Bug ID: 30943 Summary: __PRETTY_FUNCTION__ does not use the new c++11 namespace Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangb...@nondot.org Reporter: csaba.kert...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified When __PRETTY_FUNCTION__ creates the function signature, it should use the new c++11 namespace. Minimal test case: #include <stdio.h> #include <string> std::string foo() { printf("%s\n", __PRETTY_FUNCTION__); return ""; } int main(int argc, char **argv) { foo(); } When compiled and run with: - g++ and -D_GLIBCXX_USE_CXX11_ABI=0: std::string foo() - g++ and -D_GLIBCXX_USE_CXX11_ABI=1 (default for g++): std::__cxx11::string foo() - clang++ (4.0.0-svn286079-1~exp1): std::string foo() I think clang should output "std::__cxx11::string foo()", at least for compatibility with g++. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs