<div dir="ltr"><div style>I investigated it a bit:</div>the issue is in Sema::MergeFunctionDecl, for the following example<div>---</div><div style>struct Foo {</div><div style>  static void foo(); // CXXMethodDecl->isStatic() = true</div>

<div style>};</div><div style>--</div><div style>void Foo::foo(); // CXXMethodDecl->isStatic() = false since there's no static keyword here</div><div style><br></div><div style>But MergeFunctionDecl relies on the latter declaration being static also when checking CC compatibility.</div>

<div style>I'm on it.</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 19 February 2013 12:54, Timur Iskhodzhanov <span dir="ltr"><<a href="mailto:timurrrr@google.com" target="_blank">timurrrr@google.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2012/8/25 John McCall <<a href="mailto:rjmccall@apple.com">rjmccall@apple.com</a>>:<br>
> +  void static_baz();<br>
> +  void __cdecl static_qux();<br>
FYI these lines are missing 'static' keywords; I've fixed that in r175502.<br>
Bug found by Alexander Zinenko!<br>
<br>
Hm, interesting - looks like a method declared without a CC can be<br>
defined with __cdecl?..<br>
</blockquote></div><br></div>