[llvm-bugs] [Bug 45151] New: Deprecated attribute not honoured on partial template specialization

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 9 07:52:22 PDT 2020


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

            Bug ID: 45151
           Summary: Deprecated attribute not honoured on partial template
                    specialization
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ldionne at apple.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

In the following code, the deprecated attribute does not fire. I believe that
is because it is applied to a partial specialization:

    cat <<EOF | clang++ -xc++ -
    template <typename T> class function { };
    template <typename A>
    class __attribute__((deprecated)) function<void(A)> { };
    int main() { function<void(int)> f; }
    EOF

Live repro: https://wandbox.org/permlink/5IAXzJOYCpPuCbok

-- 
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/20200309/41d3a948/attachment-0001.html>


More information about the llvm-bugs mailing list