ayzhao added a comment.

Friendly ping for reviewers since (I think) this is more or less complete.

Additionally, I found out that the GCC implementation [0] allows references to 
aggregates to be paren-initialized - i.e. it accepts the following:

  struct A {
    int a;
    int b;
  };
  const A& r(1, 2);
  int (&&rr)[](1, 2, 3);

however; I don't see anything in the standard that supports these kinds of 
expressions. Moreover, MSVC also doesn't support paren-initialized aggregate 
references [1].

Could someone familiar with the standard comment on this?

[0]: 
https://github.com/gcc-mirror/gcc/commit/43aae289866f5ea55d187444520412554aa2e171
[1]: https://godbolt.org/z/87cdn6c19


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129531

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

Reply via email to