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

            Bug ID: 42637
           Summary: deprecated attribute string-literal
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

Clang rejects valid C++ code when the deprecated attribute is given a
non-narrow string literal. e.g.,

[[deprecated(u"Test")]] void foo1();
[[deprecated(U"Test")]] void foo2();
[[deprecated(u8"Test")]] void foo3();
[[deprecated(L"Test")]] void foo4();

all are diagnosed as:

error: 'deprecated' attribute requires a string

http://eel.is/c++draft/dcl.attr.deprecated#1 specifies that it should accept an
arbitrary string literal.

-- 
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