[llvm-bugs] [Bug 47732] New: Missing location information for -Wignored-qualifiers

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 5 09:53:01 PDT 2020


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

            Bug ID: 47732
           Summary: Missing location information for -Wignored-qualifiers
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: aaronpuchert at alice-dsl.net
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

Compiling the following code with -fsyntax-only -Wignored-qualifiers:

template<typename F>
void foo(F&& f) {}

void bug() {
    foo([](const int& x)->const int { return x; });
}

We get the following warning (expected) without location information
(unexpected):

warning: 'const' type qualifier on return type has no effect
[-Wignored-qualifiers]

-- 
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/20201005/c4d47ade/attachment.html>


More information about the llvm-bugs mailing list