[llvm-bugs] [Bug 43709] New: Wignored-qualifiers emits a false positive warning for user defined types returned by const auto

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 18 03:37:09 PDT 2019


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

            Bug ID: 43709
           Summary: Wignored-qualifiers emits a false positive warning for
                    user defined types returned by const auto
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kurkindmit at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Consider the example:

struct S{};

const auto bar() { return S{}; } // false positive warning
const S bar1() { return S{}; }

https://godbolt.org/z/XE3F69

-- 
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/20191018/4b53768c/attachment-0001.html>


More information about the llvm-bugs mailing list