<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [ms] __LPREFIX feature of MSVC isn't supported in clang"
href="https://llvm.org/bugs/show_bug.cgi?id=27028">27028</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[ms] __LPREFIX feature of MSVC isn't supported in clang
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ivantarquinn@mail.ru
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>This report is about MSVC feature __LPREFIX that adds prefix L to its argument,
for example, it changes its argument's type char[n] to wchar_t[n]. Identifier
__LPREFIX with any argument is unknown for clang.
=========Environment=============
OS: Win
Version: trunk
=========Reproducer==============
test.cpp
-----------
int main()
{
wchar_t* C = __LPREFIX(__FUNCTION__);
return 0;
}
===========Output================
MSVC compiles clearly
$ clang-cl -c test.cpp
test.cpp(3,16) : error: use of undeclared identifier '__LPREFIX'
It should work like macro, but it is really not preprocessor macro:
$ cl -E test.cpp
int main()
{
wchar_t* C = __LPREFIX(__FUNCTION__);
return 0;
}
=================================
Andrey Skripkin
Software Engineer
Intel Compiler Team</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>