<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>Le 8 avr. 2014 à 12:55, Alessio Giovanni Baroni <<a href="mailto:alessiogiovanni.baroni@gmail.com">alessiogiovanni.baroni@gmail.com</a>> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi,<div><br></div><div>I’m on Mac OS X 10.9.2 with all last updates; if I have this source:</div><div><br></div><div><div><font face="Courier New">class xxx explicit</font></div><div><font face="Courier New">{</font></div><div><font face="Courier New">};</font></div><div><font face="Courier New"><br></font></div><div><font face="Courier New">int main (int argc, char **argv)</font></div><div><font face="Courier New">{</font></div><div><font face="Courier New"><br></font></div><div><font face="Courier New"> return 0;</font></div><div><font face="Courier New">}</font></div></div><div><br></div><div>and I compile it with clang++ -std=c++11 -Wall -pedantic -c I obtain this error:</div><div><br></div><div><div><font face="Courier New">nn:1: error: expected unqualified-id</font></div><div><font face="Courier New">{</font></div><div><font face="Courier New">^</font></div><div><font face="Courier New">1 error generated.</font></div></div><div><br></div><div>But the C++ 11 standard permits explicit on classes.</div></div></blockquote><div><br></div>What standard version are you talking about ?</div><div><br></div><div>I don't see anything like that in the C++11 final standard, nor in the current C++14 draft.<br><div><br></div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>It’s a bug?</div></div>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></blockquote></div><br></body></html>