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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to