[PATCH] D48519: [Sema] isValidCoroutineContext FIXME and citations
    Brian Gesiak via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Sat Jun 23 08:49:33 PDT 2018
    
    
  
modocache added inline comments.
================
Comment at: lib/Sema/SemaCoroutine.cpp:260
   else if (MD && MD->isMoveAssignmentOperator())
     return DiagInvalid(DiagMoveAssign);
+  // [basic.start.main]p3: "The function main shall not be a coroutine."
----------------
@GorNishanov Is there anything in the TS that states copy and move assignment operators shall not include await or yield expressions? These were added D25292 but I'm not sure whether I'm missing something in the TS text, or if maybe this language was in a prior revision of the TS.
Repository:
  rC Clang
https://reviews.llvm.org/D48519
    
    
More information about the cfe-commits
mailing list