<div>Thanks Doug,</div><div><br></div><div>I have seen the response and the paragraph in the standard.</div><div>Now that I think, it is quite logical.</div><div><br></div><div>Sorry for the bug report before talking.</div>
<div><br></div><div>I'm reporting it to where it belongs (GCC).</div><div><br></div><div>Thanks and regards,</div><div>Fernando.</div><br><div class="gmail_quote">On Fri, May 4, 2012 at 3:13 PM, Douglas Gregor <span dir="ltr"><<a href="mailto:dgregor@apple.com" target="_blank">dgregor@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div class="h5"><br><div><div>On May 4, 2012, at 6:17 AM, Fernando Pelliccioni <<a href="mailto:fpelliccioni@gmail.com" target="_blank">fpelliccioni@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div><div>Is this compile time error correct?</div><div><br></div><div>g++ 4.6.3 compiles fine</div><div><br></div><div><br></div><div>Here is the code:</div><div><a href="http://pastebin.com/jUQ802Kh" target="_blank">http://pastebin.com/jUQ802Kh</a></div>
</div><div><br></div><div><br></div><div><pre style="width:50em;white-space:pre-wrap">$ clang++ --version
clang version 3.1 (trunk 155038)
Target: i386-pc-linux-gnu
Thread model: posix</pre></div><div><pre style="width:50em;white-space:pre-wrap">$ clang++ -std=c++11 clang_error.cpp
clang_error.cpp:55:18: error: no matching member function for call to 'get'
std::cout << ov.get<double>() << std::endl;
~~~^~~~~~~~~~~
clang_error.cpp:43:2: note: candidate template ignored: substitution failure
[with T2 = double]
get()
^
1 error generated.</pre></div></blockquote><br></div></div></div><div>As noted in the corresponding bug report (<a href="http://llvm.org/bugs/show_bug.cgi?id=12737" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=12737</a>), Clang is correct to reject this code.</div>
<div><br></div><div><span style="white-space:pre-wrap"> </span>- Doug</div><div><br></div><br></div>
</blockquote></div><br>