c++: Add fixed test [PR91506]
authorMarek Polacek <polacek@redhat.com>
Thu, 10 Dec 2020 20:34:19 +0000 (15:34 -0500)
committerMarek Polacek <polacek@redhat.com>
Thu, 10 Dec 2020 20:35:20 +0000 (15:35 -0500)
commit96a5c483afbe0cb3fb037641bf2b5658531d9255
tree447fcf0cdeada2a50c50366290945d4826d7c8b6
parent4f1d8bd5096cc234313b23f64cdac53a94ff75a2
c++: Add fixed test [PR91506]

Pre-r11-557 we issued a bogus

  error: parameter may not have variably modified type 'double [x]'

but now we compile this, as we should.

gcc/testsuite/ChangeLog:

PR c++/91506
* g++.dg/init/array60.C: New test.
gcc/testsuite/g++.dg/init/array60.C [new file with mode: 0644]