On Thu, Jul 14, 2022 at 18:46:47 +0200, Dan Klishch via Gcc wrote: > As far as I understand the currently available plugin extension points, it is > not possible to modify template argument deduction algorithm (except the > theoretical possibility to completely override parsing step). However, such > opportunity might be beneficial for projects like libpqxx, for example, when > database schema and query text are available at compile-time, return types of > the query might be inferred by the plugin. > > I propose to add something like PLUGIN_FUNCTION_CALL plugin_event which will > allow to modify function calls conditionally. Will a patch adding such > functionality be welcomed?
Note that I'm not a GCC developer, so my opinion isn't worth much on the acceptability-to-GCC front. Wouldn't this make it a C++ dialect? How would non-GCC compilers be able to be compatible with such an API? That is, if the schema and query being available changes the API (nevermind the schema itself changing), I don't see how this works in general. --Ben