[PATCH] Improve error reporting for SFINAE

paul Fultz pfultz2 at yahoo.com
Tue Apr 7 02:41:57 PDT 2015


On Monday, April 6, 2015 7:26 PM, Richard Smith <richard at metafoo.co.uk> wrote:


> If possible, our default mode should be something that's "good enough" for
> all cases (or at least, for as many cases as we can reasonably cover). So
> I'd be inclined to say that our default mode should be to produce a complete
> backtrace for the single-viable-function case.

Well, I envision a flag like -fsfinae-backtrace-limit that would limit this
backtrace. And we could experiment to find the best default value.

> Some will benefit; for others it will be a regression. One possible way
> forward would be to put this behind a -cc1 flag so that people can
> experiment with it and incremental work can continue on the complete trace.
> Would that work for you?

That would work. Could you point me to an example or documentation on how to
read these -cc1 flags?

Thanks,
Paul



More information about the cfe-commits mailing list