chaitanyav added a comment.

  test.cpp:2:34: error: excess elements in scalar initializer
  _Complex double dd = {1.0, 2.0 , 3.0};
                                   ^~~
  test.cpp:3:32: error: excess elements in scalar initializer
  _Complex float fd = {1.0, 2.0, 3.0, 4.0, 5.0};
                                 ^~~
  test.cpp:4:42: error: excess elements in scalar initializer
  constexpr _Complex double d = {1.0, 2.0, 3.0, 45};
                                           ^~~
  test.cpp:11:23: error: no viable conversion from 'foo' to '_Complex double'
  _Complex double ds = {f, 1.0, b};
                        ^
  test.cpp:13:28: error: no viable conversion from 'foo' to 'double'
  _Complex double fg = {1.0, f};
                             ^
  test.cpp:15:33: error: excess elements in scalar initializer
  _Complex double gg = {1.0, 2.0, f};
                                  ^
  6 errors generated.                  

Tested various scenarios to ensure the behavior is as expected. Please review


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D146503

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

Reply via email to