[llvm-bugs] [Bug 30595] New: extraneous const qualifier allowed in malformed conversion function

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Oct 2 17:21:26 PDT 2016


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: unassignedclangbugs at nondot.org
          Reporter: jeff.mirwaisi at gmail.com
                CC: dgregor at apple.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161003/121d9cab/attachment.html>


More information about the llvm-bugs mailing list