[llvm-bugs] [Bug 49703] New: bad diagnostics: error AND warning for `volatile void`

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 23 17:12:44 PDT 2021


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

            Bug ID: 49703
           Summary: bad diagnostics: error AND warning for `volatile void`
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++2a
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mizvekov at gmail.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

Repro: `void f(volatile void);`
Workspace: https://godbolt.org/z/fKG411PKn

Output:

volatile-qualified parameter type 'volatile void' is deprecated
[-Wdeprecated-volatile]
void f(volatile void);
                    ^
error: 'void' as parameter must not have type qualifiers
void f(volatile void);

-- 
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/20210324/a4c3e1fd/attachment.html>


More information about the llvm-bugs mailing list