Partially fixes PR24883.
The patch sets Reference bit while instantiating a typedef if it
previously was found referenced.
Differential D114382
[clang] Fix wrong -Wunused-local-typedef warning within a template function krisb on Nov 22 2021, 10:32 AM. Authored by
Details Partially fixes PR24883. The patch sets Reference bit while instantiating a typedef if it
Diff Detail
Event Timeline
|
I'm not sure what was the original intent of this test (i.e. whether it intentionally tests the fact that there is no error on an uninstantiated static member function). As well as it doesn't clear to me what is the role of the unused typedef here, but it starts triggering the error because of redecls() call on isReferenced() added by this patch.