[cfe-commits] r171088 - in /cfe/trunk: lib/Sema/Sema.cpp test/SemaCXX/warn-func-not-needed.cpp
Rafael EspĂndola
rafael.espindola at gmail.com
Mon Jan 7 20:15:37 PST 2013
...
> static void f();
> static void f();
> template<typename T>
> static void g() {
> f();
> }
> static void f() {
> }
> void h() {
> g<int>();
> }
>
> the call to f refers to the second decl, but it is only marked used at
> the end of the translation unit during instantiation, after the third
> f decl has been linked in.
An rebased patch is attached. Is it OK?
Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 2233 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130107/993bf562/attachment.obj>
More information about the cfe-commits
mailing list