It looks like its the usual "most vexing parse", with an astonishing cascade of diagnostics caused by it.<div><br></div><div>It's a regrettable quirk of C++'s syntax, even has its own wikipedia page <<a href="http://en.wikipedia.org/wiki/Most_vexing_parse">http://en.wikipedia.org/wiki/Most_vexing_parse</a>>. </div>
<div><br></div><div>Basically, this is the problem:</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">warning: parentheses were disambiguated as a function declarator</span><br style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">[-Wvexing-parse]</span><br style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">   Soprano::Node dateTime( Soprano::LiteralValue(</span><br style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">QDateTime::currentDateTime() ) </span><br><div><br></div><div>Clang sums it up quite nicely. That declaration declares a function `dateTime`, which is causing all the problems (failure to find overloads, etc.). An extra pair of parens should make the program mean what you intended (unless there's something else going on that I missed among the cascade of errors):</div>
<div><br></div><div><span style="font-size:13px;font-family:arial,sans-serif;background-color:rgb(255,255,255)">Soprano::Node dateTime( Soprano::LiteralValue(</span><span style="font-size:13px;font-family:arial,sans-serif;background-color:rgb(255,255,255)">QDateTime::currentDateTime() )</span></div>
<div><span style="font-size:13px;font-family:arial,sans-serif;background-color:rgb(255,255,255)">to</span></div><div><span style="font-size:13px;font-family:arial,sans-serif;background-color:rgb(255,255,255)">Soprano::Node dateTime( (Soprano::LiteralValue(</span><span style="font-size:13px;font-family:arial,sans-serif;background-color:rgb(255,255,255)">QDateTime::currentDateTime()) )</span></div>
<div><span style="font-size:13px;font-family:arial,sans-serif;background-color:rgb(255,255,255)"><br></span></div><div><span style="font-size:13px;font-family:arial,sans-serif;background-color:rgb(255,255,255)">This is one reason why C++11's "uniform initialization syntax" is a win. It avoids this problem by using braces.</span></div>
<div><span style="font-size:13px;font-family:arial,sans-serif;background-color:rgb(255,255,255)"><br></span></div><div><span style="font-size:13px;font-family:arial,sans-serif;background-color:rgb(255,255,255)">--Sean Silva</span></div>
<div><br><div class="gmail_quote">On Fri, May 4, 2012 at 6:06 PM, Shaun Reich <span dir="ltr"><<a href="mailto:sreich@kde.org" target="_blank">sreich@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
reproducible with clang from today's git.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Shaun Reich,<br>
KDE Software Developer (<a href="http://kde.org" target="_blank">kde.org</a>)<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div></div>