loladiro added inline comments.

================
Comment at: include/clang/Basic/Attr.td:1463
@@ +1462,3 @@
+  let Spellings = [GNU<"unique_instantiation">];
+  let Subjects = SubjectList<[Function, CXXRecord], ErrorDiag>;
+  let Documentation = [UniqueInstantiationDocs];
----------------
majnemer wrote:
> They work ok, clang just thinks that it's a declaration of a variable 
> template.  Try this:
>   template <typename T> T n = T();
>   extern template int n<int>;
>   template int n<int>;
I see. I'll look into adding support for it. Can you explain why my example 
doesn't work? GCC seems to allow this.


Repository:
  rL LLVM

http://reviews.llvm.org/D13330



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to