rsmith accepted this revision.
rsmith added inline comments.
This revision is now accepted and ready to land.


================
Comment at: include/clang/Basic/DiagnosticSemaKinds.td:1992
+def ext_auto_new_list_init : Extension<
+  "ISO C++ standards before C++17 does not allow new expression for "
+  "type %0 using list-initialization">, InGroup<CXX17>;
----------------
does not -> do not, using -> to use


================
Comment at: lib/Sema/SemaExprCXX.cpp:1763-1765
+    if (Braced && !getLangOpts().CPlusPlus17)
+      Diag(Initializer->getLocStart(), diag::ext_auto_new_list_init)
+          << AllocType << TypeRange;
----------------
Move this after the "ctor_multiple_expressions" diagnostic below.


Repository:
  rC Clang

https://reviews.llvm.org/D39451



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

Reply via email to