[Bug c++/87765] Internal compiler error: coerce_template_parms (8.2) or cxx_eval_constant_expression (trunk)

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 23 18:00:55 GMT 2020


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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Since r10-6416 the test in Comment 4 no longer ICEs:

87765.C: In function ‘constexpr void t(X)’:
87765.C:3:51: error: call to non-‘constexpr’ function ‘int X::s()’
    3 | template<int> static constexpr void t(X x) { Y<x.s()> v;}
      |                                                ~~~^~
87765.C:3:51: note: in template argument for type ‘int’

The original test, however, still ICEs.


More information about the Gcc-bugs mailing list