https://bugs.llvm.org/show_bug.cgi?id=41652
Bug ID: 41652
Summary: clang-cl decltype incomplete return types doesn't
match MSVC support
Product: clang
Version: trunk
Hardware: PC
OS: other
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: robert.mayn...@kitware.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@metafoo.co.uk
Created attachment 21848
--> https://bugs.llvm.org/attachment.cgi?id=21848&action=edit
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 (
https://gitlab.kitware.com/cmake/cmake/merge_requests/3232 ) to help improve
initial configuration times by marking compilers that have full
compiler-feature support.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs