[PATCH] D151634: [clang] Add test for CWG253

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 30 17:52:14 PDT 2023


shafik added inline comments.


================
Comment at: clang/test/CXX/drs/dr0xx.cpp:1022
 
-namespace dr78 { // dr78: sup ????
+namespace dr78 { // dr78: no
   // Under DR78, this is valid, because 'k' has static storage duration, so is
----------------
This is [issue 1380](https://github.com/cplusplus/papers/issues/1380) and the issue is whether we want static initialization to happen before constant initialization or whether constant initialization excludes zero-init. 

I think dr77 is now part of [cwg 2536](https://cplusplus.github.io/CWG/issues/2536.html) and we need to wait for the resolution of that in order to know what to do here. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D151634/new/

https://reviews.llvm.org/D151634



More information about the cfe-commits mailing list