<div>Hello,</div><div><br></div><div>I started playing with clang the other day and I realized it didn't handle a fairly simple case.</div><div><br></div><div><div>    #include <stdio.h></div><div><br></div><div>
    class Test</div><div>    {</div><div>    public:</div><div>        void TestingInlineMethod()</div><div>        {</div><div>            printf("TestingInlineMethod!\n");</div><div>        }</div><div>    };</div>
<div><br></div><div>    int main(int argc, char* argv[])</div><div>    {</div><div>        Test a;</div><div>        a.TestingInlineMethod();</div><div><br></div><div>        return 0;</div><div>    }</div><div><br></div>
<div>Compiling this code resulted in a linking error.</div></div><div><br></div><div><div>    brad-macbook:clang bradleymurray$ clang -ccc-clang-cxx test.cpp</div><div>    Undefined symbols:</div><div>      "__ZN4Test19TestingInlineMethodEv", referenced from:</div>
<div>          _main in cc-oKiqB0.o</div><div>    ld: symbol(s) not found</div><div><br></div><div>Interested, I dug into the code a bit and tried to figure out what was going wrong. I've attached a patch that fixes the issue, but I'm not sure if it's correct. Comments would be appreciated.</div>
<div><br></div><div>Thanks,</div><div>Brad Murray</div></div>