[llvm-bugs] [Bug 22076] template attribute is not diagnosed in the first instantiation

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jun 10 12:37:10 PDT 2017


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

Yaron Keren <yaron.keren at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Yaron Keren <yaron.keren at gmail.com> ---
this is fixed as of r305089

file.cpp:3:3: warning: 'c<int>' is deprecated [-Wdeprecated-declarations]
  c<int> a;
  ^
file.cpp:1:55: note: 'c<int>' has been explicitly marked deprecated here
template <typename T>class c { T d; } __attribute__ ((__deprecated__));
                                                      ^
file.cpp:4:3: warning: 'c<int>' is deprecated [-Wdeprecated-declarations]
  c<int> b;
  ^
file.cpp:1:55: note: 'c<int>' has been explicitly marked deprecated here
template <typename T>class c { T d; } __attribute__ ((__deprecated__));
                                                      ^
2 warnings generated.

-- 
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/20170610/c0d5203b/attachment.html>


More information about the llvm-bugs mailing list