https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125514

Dimitry Andric <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |om

--- Comment #6 from Dimitry Andric <[email protected]> ---
I'm also seeing this on an internal project, where I haven't yet been able to
reduce the test case.

That said, there is also another annoying aspect about -Wsfinae-incomplete: it
tells you to "Use '-Wsfinae-incomplete=2' for a diagnostic at that point", but
that actually gives you _less_ information:

$ ~/ins/gcc-17-7159-g1d124a757ef/bin/g++ -std=c++17 -c repro.cpp
-Wsfinae-incomplete=2
repro.cpp:10:7: warning: defining 'incomplete', which previously failed to be
complete in a SFINAE context [-Wsfinae-incomplete=]
   10 | class incomplete
      |       ^~~~~~~~~~

It would be much handier if gcc could point you to the exact instance of the
"previously failed" instantiation? Because now it is putting you on a hunt
through all your headers, to figure out where it seems to have found an
incomplete declaration...

Reply via email to