]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/40013 (ICE when creating a local array with size from the return value...
authorJakub Jelinek <jakub@redhat.com>
Tue, 5 May 2009 06:37:05 +0000 (08:37 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 5 May 2009 06:37:05 +0000 (08:37 +0200)
commit5bbca03966e06a79f5dd06166f6998369256efa9
tree72b24ae5789cf19e7d30d4fbc03c4a8a4c874f11
parent4fbe73ec8080aad23ad62972d7a05565ecadd0bc
re PR c++/40013 (ICE when creating a local array with size from the return value of a member function of an object in a nested class in a template class)

PR c++/40013
* pt.c (tsubst): If magic NOP_EXPR with side-effects has no type,
set it from its operand's type after tsubst_expr.

* g++.dg/ext/vla7.C: New test.

From-SVN: r147119
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/vla7.C [new file with mode: 0644]