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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to