[LLVMbugs] [Bug 13206] New: L__FUNCTION__ doesn't work right
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Jun 25 15:21:16 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13206
Bug #: 13206
Summary: L__FUNCTION__ doesn't work right
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Nicos-MacBook-Pro:clang thakis$ cat wchar.cc
void foo(const wchar_t *);
template<class T> class A {
public:
void method() {
::foo(L__FUNCTION__);
}
};
void bar() {
A<char> x;
x.method();
}Nicos-MacBook-Pro:clang thakis$ ../../Release+Asserts/bin/clang -c wchar.cc
-fms-extensions
wchar.cc:6:9: error: cannot initialize a parameter of type 'const wchar_t *'
with an lvalue of type 'const char [7]'
::foo(L__FUNCTION__);
^~~~~~~~~~~~~
wchar.cc:12:4: note: in instantiation of member function 'A<char>::method'
requested here
x.method();
^
wchar.cc:1:25: note: passing argument to parameter here
void foo(const wchar_t *);
^
1 error generated.
It works well in simpler scenarios though.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list