re PR c++/65390 (ICE in strip_typedefs, at cp/tree.c:1361)
authorMarek Polacek <polacek@redhat.com>
Tue, 31 Mar 2015 17:35:29 +0000 (17:35 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 31 Mar 2015 17:35:29 +0000 (17:35 +0000)
commit397ad54db15fb4c8c6efdabefa76fa5865ff6c0c
treec1ff8570603f2451c5c516c08d53522bcff0d979
parent9e91e2cd71b18d493e4eb0dac685f8e99f12d0d4
re PR c++/65390 (ICE in strip_typedefs, at cp/tree.c:1361)

PR c++/65390
* tree.c (build_cplus_array_type): Use dependent_type_p rather than
checking for constness.

* g++.dg/template/pr65390.C: New test.

From-SVN: r221799
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/pr65390.C [new file with mode: 0644]