https://llvm.org/bugs/show_bug.cgi?id=30595

            Bug ID: 30595
           Summary: extraneous const qualifier allowed in malformed
                    conversion function
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: jeff.mirwa...@gmail.com
                CC: dgre...@apple.com, llvm-bugs@lists.llvm.org
    Classification: Unclassified

The following malformed conversion function is allowed:

struct S{const operator int() const {return 42;}};

The first const is in error (not applied to the conversion function or the
return type)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to