[llvm-bugs] [Bug 41746] New: No warning on unused exception parameter with -Wall -Wextra

via llvm-bugs llvm-bugs at lists.llvm.org
Sun May 5 01:36:39 PDT 2019


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

            Bug ID: 41746
           Summary: No warning on unused exception parameter with -Wall
                    -Wextra
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mark.z.harrison 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

Created attachment 21892
  --> https://bugs.llvm.org/attachment.cgi?id=21892&action=edit
Source file demonstrating bug

~ > cat unused.cpp 
int main()
{
    try
    {
        throw 0;
    }
    catch(int k)
    {
    }

    return 0;
}

====================

Compile with: clang++ -Wall -Wextra unused.cpp

No warnings are produced about the unused exception parameter k.

-- 
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/20190505/aa4f3573/attachment.html>


More information about the llvm-bugs mailing list