I would like to suggest to close this bug report as "won't" fix.
We can implement code in the routine declarekind to handle this very special case. But it might be overly cautious to handle this case and the warning might confuse a user.

Setting the status to pending and the resolution to "wont fix".
Dieter Kaiser

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).