re PR c++/85112 (ICE with invalid constexpr)
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 16 Apr 2018 08:31:23 +0000 (08:31 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 16 Apr 2018 08:31:23 +0000 (08:31 +0000)
commitc814ac9e69218ffd68b042c77829ea590ba6049a
tree51e8eb81cf09dafe21406e801f968cad85230089
parentef0e80d23cae8d87167ffeab56f5930da1ddf05d
re PR c++/85112 (ICE with invalid constexpr)

2018-04-16  Paolo Carlini  <paolo.carlini@oracle.com>
    Jason Merrill  <jason@redhat.com>

PR c++/85112
* convert.c (convert_to_integer_1): Use direct recursion for
enumeral types and types with a precision less than the number
of bits in their mode.

/testsuite
2018-04-16  Paolo Carlini  <paolo.carlini@oracle.com>
    Jason Merrill  <jason@redhat.com>

PR c++/85112
* g++.dg/cpp0x/pr85112.C: New.

Co-Authored-By: Jason Merrill <jason@redhat.com>
From-SVN: r259397
gcc/ChangeLog
gcc/convert.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr85112.C [new file with mode: 0644]