<br><br><div class="gmail_quote">On Wed, Nov 30, 2011 at 6:32 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com">eli.friedman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Wed, Nov 30, 2011 at 6:21 PM, Kostya Serebryany <<a href="mailto:kcc@google.com">kcc@google.com</a>> wrote:<br>
</div><div class="im">> Hi,<br>
> Here is one difference between clang and gcc which makes some of our<br>
> software fail when built with clang.<br>
> is this something you would consider fixing?<br>
<br>
</div>No, we are not going to change the placement of the * in "const char *foo".<br></blockquote><div><br></div><div>That's not about '*', but about "[with T = int]"</div><div>I don't think that there is any standard that exactly defines how __PRETTY_FUNCTION__ behaves, but having <br>
[with T = int]" might be useful. </div><div><br></div><div>(But yes, our code that relies on this is ... )</div><div><br></div><div>--kcc </div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
-Eli<br>
<div class="im"><br>
> Thanks,<br>
><br>
> --kcc<br>
><br>
> % cat pretty.cc<br>
> #include <stdio.h><br>
> template<class T><br>
> const char *foo() {<br>
> return __PRETTY_FUNCTION__;<br>
> }<br>
> int main() {<br>
> printf("%s\n", foo<int>());<br>
> }<br>
> % g++ pretty.cc && ./a.out<br>
> const char* foo() [with T = int]<br>
> % ~/llvm/build/Release+Asserts/bin/clang++ pretty.cc && ./a.out<br>
> const char *foo()<br>
><br>
</div>> _______________________________________________<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>
><br>
</blockquote></div><br>