<HTML><HEAD><TITLE>Samsung Enterprise Portal mySingle</TITLE>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<STYLE id=mysingle_style type=text/css>P {
MARGIN-TOP: 5px; FONT-FAMILY: Arial, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt
}
TD {
MARGIN-TOP: 5px; FONT-FAMILY: Arial, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt
}
LI {
MARGIN-TOP: 5px; FONT-FAMILY: Arial, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt
}
BODY {
LINE-HEIGHT: 1.4; MARGIN: 10px; FONT-FAMILY: Arial, arial; FONT-SIZE: 9pt
}
</STYLE>
<META name=GENERATOR content=ActiveSquare></HEAD>
<BODY>
<P> </P>
<P>Ping! anyone has some info on the issue below?</P>
<P> </P>
<P>------- <B>Original Message</B> -------</P>
<P><B>Sender</B> : SENTHIL KUMAR THANGAVELU<senthil.t@samsung.com> ./Senior Technical Manager/SRI-Bangalore-Native Framework/Samsung Electronics</P>
<P><B>Date</B> : Oct 30, 2013 12:44 (GMT+05:30)</P>
<P><B>Title</B> : Fwd: Is variadic template a default constructor ? gcc 4.8.1 test case variadic-default.C</P>
<P> </P>
<META name=GENERATOR content=ActiveSquare><X-BODY>
<P> </P>
<P>Clang rejects this test case with diagnostic "error: call to constructor of 'A' is ambiguous".</P>
<P> </P>
<P>------- <B>Original Message</B> -------</P>
<P><B>Sender</B> : SENTHIL KUMAR THANGAVELU<senthil.t@samsung.com> ./Senior Technical Manager/SRI-Bangalore-Native Framework/Samsung Electronics</P>
<P><B>Date</B> : Oct 30, 2013 12:40 (GMT+05:30)</P>
<P><B>Title</B> : Is variadic template a default constructor ? gcc 4.8.1 test case variadic-default.C</P>
<P> </P>Hello all,<BR> There is a test case "variadic-default.C" in gcc 4.8.1 test suite discussed in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49205 . 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?<BR><BR>#include <INITIALIZER_LIST><BR><BR>struct A {<BR> template<TYPENAME ...T> A(T...);<BR> A(std::initializer_list<SHORT>);<BR> A(std::initializer_list<LONG>);<BR>};<BR><BR>A a{};<BR><BR>Regards<BR>Senthil Kumar
<P> </P>
<P> </P><!--SP:senthil.t-->
<P>Regards</P>
<P>Senthil Kumar</P>
<P> </P><!--senthil.t:EP-->
<P> </P></X-BODY>
<P> </P>
<P> </P><!--SP:senthil.t-->
<P>Regards</P>
<P>Senthil Kumar</P>
<P> </P><!--senthil.t:EP-->
<P> </P>
<TABLE id=confidentialsignimg>
<TBODY>
<TR>
<TD NAMO_LOCK>
<P><IMG border=0 src="cid:BEI0XT4NZ5JE@namo.co.kr" width=520></P></TD></TR></TBODY></TABLE></BODY></HTML><img src='http://ext.samsung.net/mailcheck/SeenTimeChecker?do=dd33518e7a618b287ee2b426a876c7ae289c9389c28b91f79cdd14f0554fc2de1d78c8484d0968ef1d70666c366810d91b20909a04efd4d2748cfe1d4e847419cf878f9a26ce15a0' border=0 width=0 height=0 style='display:none'>