cor3ntin added a comment.

Interesting case that crashes the compiler, stack overflow

  cpp
  struct T{};
  struct C {
      operator T (this int);
      operator int();
  };
  
  void foo(C c) {
     T d = c;
  }

Not completely sure that this is supposed to be covered by 
https://eel.is/c++draft/class.conv#general-4


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140828

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to