[LLVMbugs] [Bug 21969] New: trailing return type for conversion operator leads to bizarre diagnostic

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Dec 18 13:42:57 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21969

            Bug ID: 21969
           Summary: trailing return type for conversion operator leads to
                    bizarre diagnostic
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++14
          Assignee: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

<stdin>:1:12: error: must use a typedef to declare a conversion to 'int'
struct S { operator auto() -> int { return 0; } };
           ^

It seems pretty clear that this should be ill-formed, but this is certainly not
the right diagnostic.

-- 
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/20141218/4d017ae5/attachment.html>


More information about the llvm-bugs mailing list