Clang rejects this test case with diagnostic “error: call to constructor of ‘A’ is ambiguous”.
------- Original Message -------
Sender : SENTHIL KUMAR THANGAVELUsenthil.email@example.com ./Senior Technical Manager/SRI-Bangalore-Native Framework/Samsung Electronics
Title : Is variadic template a default constructor ? gcc 4.8.1 test case variadic-default.C
There is a test case “variadic-default.C” in gcc 4.8.1 test suite discussed in 49205 – [C++0x] Default constructor with pack expansion parameter not detected . I can see “consensus at clang was that WG21 made an oversight in allowing this” in the discussion. Anyone knows the history? also in the same discussion its mentioned “We should just treat the variadic template as a default constructor”. gcc 4.8.1 and intel 64 bit compiler 13.1.3 accepts this test case. Should this be fixed in clang? or clang behaviour is correct?