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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |ice-on-invalid-code

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
On gcc-patches (https://gcc.gnu.org/ml/gcc-patches/2019-02/threads.html#01619)
richi pointed out that the testcase is invalid because the undefined functions
we warn about can never be defined, and I agree.  And indeed with
-pedantic-errors the warnings become errors, so we reject the testcase at
compile time and never get to LTO.

So another possible fix would be changing the pedwarn in
check_global_declaration to an error.

Reply via email to