================
@@ -196,6 +196,16 @@ void g() {
 #endif
 } // namespace cwg2277
 
+namespace cwg2285 { // cwg2285: 4
----------------
zwuis wrote:

> It seems that Clang 5 was the first release which exhibits the correct 
> behavior: https://godbolt.org/z/qabGrdvPq

`-std=c++1z` set `__cplusplus` to `201406L` in Clang 4. It was changed to 
`201703L` in 
https://github.com/llvm/llvm-project/commit/4b0cad0bb8731409c181f9a2cc9d266bb08321f9
 (Clang 5). We need to remove the `#if` condition to test corresponding 
behaviour in Clang 4.

Do I need to add this note in test file?

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

Reply via email to