void marked an inline comment as done.
void added inline comments.

================
Comment at: clang/test/SemaCXX/cxx2b-designated-initializers.cpp:13
+  const S result { // expected-error {{field designator (null) does not refer 
to any field in type 'const S'}}
+    .a = x
+  };
----------------
aaron.ballman wrote:
> rsmith wrote:
> > Why are we rejecting this?
> That's existing behavior: https://godbolt.org/z/48ThKbTor but we don't get 
> the behavior when it's not a template (https://godbolt.org/z/f3zWaqdWr) or in 
> C (https://godbolt.org/z/P1TqG43nG), so I agree that this should be accepted.
Also, if the "auto" above is changed to "int" this compiles just fine.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D147673

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

Reply via email to