[cfe-commits] r171088 - in /cfe/trunk: lib/Sema/Sema.cpp test/SemaCXX/warn-func-not-needed.cpp
Douglas Gregor
dgregor at apple.com
Tue Jan 8 11:35:31 PST 2013
On Jan 7, 2013, at 8:15 PM, Rafael EspĂndola <rafael.espindola at gmail.com> wrote:
> ...
>> 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?
LGTM.
- Doug
More information about the cfe-commits
mailing list