]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Fix ICE in tsubst_copy with parenthesized expression [PR93299]
authorMarek Polacek <polacek@redhat.com>
Thu, 5 Mar 2020 00:04:31 +0000 (19:04 -0500)
committerMarek Polacek <polacek@redhat.com>
Thu, 5 Mar 2020 00:04:31 +0000 (19:04 -0500)
commit2b5d109ba3af320f65cb0707e8733eeea3c96262
treeac410059f7df7ec4ec11c36759d82ef9c99b6ac7
parentd8b65123ea2e7f169c3e3972d3942d73f9b3333c
c++: Fix ICE in tsubst_copy with parenthesized expression [PR93299]

PR c++/93299 - ICE in tsubst_copy with parenthesized expression.
* pt.c (tsubst_copy): Handle a REF_PARENTHESIZED_P VIEW_CONVERT_EXPR.

* g++.dg/cpp1y/paren5.C: New test.
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1y/paren5.C [new file with mode: 0644]