EricWF added a subscriber: STL_MSFT.
EricWF added inline comments.

================
Comment at: docs/LanguageExtensions.rst:996
 * ``__is_abstract`` (GNU, Microsoft)
+* ``__is_aggregate`` (GNU, Microsoft)
 * ``__is_base_of`` (GNU, Microsoft)
----------------
aaron.ballman wrote:
> Has Microsoft already implemented this? If not, do we want to wait for them 
> before claiming they implement it as well?
I asked @STL_MSFT to ping the frontend team to confirm they were planning on 
implementing it with this name. I was concerned this doc would never get 
updated otherwise. 


================
Comment at: lib/Sema/SemaExprCXX.cpp:4234
+    // support aggregate initialization. GCC mirrors this behavior for vectors
+    // but not _Complex.
+    return T->isAggregateType() || T->isVectorType() || T->isExtVectorType() ||
----------------
aaron.ballman wrote:
> Is there benefit to diverging from GCC's behavior here for _Complex types?
`_Complex` types act as if they are an array of 2 elements, and hence support 
aggregate initialization.

Ironically the GCC maintainer who implemented `is_aggregate` pointed this case 
out to me. I've pinged him to ask why he chose not to support it, or if the 
change is in the works.


https://reviews.llvm.org/D31513



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

Reply via email to