Skip to content
  1. Jun 09, 2012
    • Michael J. Spencer's avatar
      [C++11 Compat] Fix breaking change in C++11 pair copyctor. · d1e09a42
      Michael J. Spencer authored
      While this code is valid C++98, it is not valid C++11. The problem can be
      reduced to:
      
      class MDNode;
      
      class DIType {
        operator MDNode*() const {return 0;}
      };
      
      class WeakVH {
        WeakVH(MDNode*) {}
      };
      
      int main() {
        DIType di;
        std::pair<void*, WeakVH> p(std::make_pair((void*)0, di)));
      }
      
      This was not detected by any of the bots we have because they either compile
      C++98 with libstdc++ (which allows it), or C++11 with libc++ (which incorrectly
      allows it). I ran into the problem when compiling with VS 2012 RC.
      
      Thanks to Richard for explaining the issue.
      
      llvm-svn: 158245
      d1e09a42
  2. Jun 07, 2012
  3. Jun 06, 2012
  4. Jun 05, 2012
  5. Jun 01, 2012
  6. May 29, 2012
  7. May 28, 2012
  8. May 25, 2012
  9. May 24, 2012
  10. May 23, 2012
  11. May 22, 2012
  12. May 21, 2012
  13. May 20, 2012
  14. May 19, 2012
  15. May 17, 2012
  16. May 16, 2012
  17. May 14, 2012
  18. May 12, 2012
  19. May 11, 2012
  20. May 09, 2012
  21. May 08, 2012
Loading