]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c++/14401 (Uninitialized reference error not reported.)
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Sat, 13 Mar 2004 02:31:36 +0000 (02:31 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Sat, 13 Mar 2004 02:31:36 +0000 (02:31 +0000)
commit685db8b93746c7e49f69bfb9473c80905c4c073c
treebbb454ad3ec5c8dfc86f9425d8addeec10da9b53
parente7c6e677c19aa05dcd44390aaad66885dc5b13a6
backport: re PR c++/14401 (Uninitialized reference error not reported.)

        Backport:
        2004-03-08  Mark Mitchell  <mark@codesourcery.com>
        PR c++/14401
        * class.c (check_field_decls): Complain about non-static data
        members of reference type in unions.  Propagate
        CLASSTYPE_REF_FIELDS_NEED_INIT and
        CLASSTYPE_READONLY_FIELDS_NEED_INIT from the types of
        non-static
        data members.
        * init.c (perform_member_init): Complain about members with const
        type that are not explicitly initialized.

From-SVN: r79426
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/init.c