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: unassignedclangb...@nondot.org
Reporter: aa...@aaronballman.com
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
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
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs