================
@@ -16,7 +16,8 @@
 #define _NULLPTR_T
 
 #ifdef __cplusplus
-#if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED)
+#if __cplusplus >= 201103L ||                                                  
\
+    (defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED))
----------------
AaronBallman wrote:

> If you look at it as a C++03 implementation. If you look at it as a C++11 
> implementation that works with C++03 compiler it's not.

Yeah, I'm viewing it from the perspective of a user of Clang. This is 
non-conforming and has surprising behavior as a result: 
https://godbolt.org/z/9qPYPndKb

But, it sounds like this is moot because:

>  but we can't change it 15 years later.

is definitely true. :-)

https://github.com/llvm/llvm-project/pull/154599
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to