[llvm-bugs] [Bug 41652] New: clang-cl decltype incomplete return types doesn't match MSVC support

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 29 11:40:44 PDT 2019


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: unassignedclangbugs at nondot.org
          Reporter: robert.maynard at kitware.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190429/50d36b47/attachment.html>


More information about the llvm-bugs mailing list