[llvm-bugs] [Bug 42637] New: deprecated attribute string-literal
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jul 16 07:48:43 PDT 2019
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: unassignedclangbugs at nondot.org
Reporter: aaron at aaronballman.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
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190716/796c896d/attachment.html>
More information about the llvm-bugs
mailing list