Re: [PATCH 2/3] C++: provide macro used-before-defined hint (PR c++/72786).

2017-07-03 Thread Jeff Law
On 05/05/2017 11:51 AM, David Malcolm wrote: > This patch uses the name_hint/deferred_diagnostic to provide > a message in the C++ frontend if a macro is used before it is defined > e.g.: > > test.c:6:24: error: expected ‘;’ at end of member declaration >virtual void clone() const OVERRIDE { }

[PATCH 2/3] C++: provide macro used-before-defined hint (PR c++/72786).

2017-05-05 Thread David Malcolm
This patch uses the name_hint/deferred_diagnostic to provide a message in the C++ frontend if a macro is used before it is defined e.g.: test.c:6:24: error: expected ‘;’ at end of member declaration virtual void clone() const OVERRIDE { } ^