<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - clang-cl decltype incomplete return types doesn't match MSVC support"
href="https://bugs.llvm.org/show_bug.cgi?id=41652">41652</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang-cl decltype incomplete return types doesn't match MSVC support
</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>other
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>robert.maynard@kitware.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=21848" name="attach_21848" title="minimal test case for decltype incomplete return type">attachment 21848</a> <a href="attachment.cgi?id=21848&action=edit" title="minimal test case for decltype incomplete return type">[details]</a></span>
minimal test case for decltype incomplete return type
It looks like starting with MSVC v15.3 ( _MSC_VER == 1911 ) that cl has support
for incomplete decltypes such as the one attached which also compiles with
clang++-8.
But when I try to compile the example with clang-cl from trunk I get the
following error: `main.cxx(18,3): error: call to 'f' is ambiguous`.
Compile options used:
/nologo -TP /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1
/showIncludes
This was found as part of my work on CMake (
<a href="https://gitlab.kitware.com/cmake/cmake/merge_requests/3232">https://gitlab.kitware.com/cmake/cmake/merge_requests/3232</a> ) to help improve
initial configuration times by marking compilers that have full
compiler-feature support.</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>