decl.c (check_initializer): Try to complete the type of an array element before check...
authorRichard Sandiford <rsandifo@redhat.com>
Wed, 14 Nov 2001 12:53:09 +0000 (12:53 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 14 Nov 2001 12:53:09 +0000 (12:53 +0000)
commitfe5b6c1c500c808353b51952d8165005bb8ef3e2
tree116ca930c48210e644eea48ac68af51c8a8e845c
parentb1bba9c0cb98dea68a9a9858cd8f40516969470b
decl.c (check_initializer): Try to complete the type of an array element before checking whether it's complete.

        * decl.c (check_initializer): Try to complete the type of an
        array element before checking whether it's complete.  Don't
        complain about arrays with complete element types but an
        unknown size.
        (cp_finish_decl): Build the hierarchical constructor before
        calling maybe_deduce_size_from_array_init.

From-SVN: r47008
gcc/cp/ChangeLog
gcc/cp/decl.c