]> git.ipfire.org Git - thirdparty/gcc.git/commit
repo.c (repo_get_id): Handle the case where a class with virtual bases has a null...
authorJason Merrill <jason@gcc.gnu.org>
Tue, 4 Jul 2000 07:47:11 +0000 (03:47 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 4 Jul 2000 07:47:11 +0000 (03:47 -0400)
commit90418208f9263454e7a327fb74ce9e60cab0e944
treef2fb5fe0f2f39a6d019d0aced8f4989911570843
parent692e9bd5d0c1e0318a69e3d9e8533abd9a985660
repo.c (repo_get_id): Handle the case where a class with virtual bases has a null TYPE_BINFO_VTABLE.

        * repo.c (repo_get_id): Handle the case where a class with virtual
        bases has a null TYPE_BINFO_VTABLE.

        * parse.y (member_init): Just pass in the type.
        * init.c (expand_member_init): Handle getting a type.

        * decl.c (finish_function): Warn if a function has no return
        statement.
        Suggested by Andrew Koenig.
        * typeck.c (check_return_expr): Do set current_function_returns_value
        if we got an error_mark_node.

From-SVN: r34863
24 files changed:
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/init.c
gcc/cp/parse.c
gcc/cp/parse.y
gcc/cp/repo.c
gcc/cp/typeck.c
gcc/testsuite/g++.old-deja/g++.brendan/scope1.C
gcc/testsuite/g++.old-deja/g++.ext/array1.C
gcc/testsuite/g++.old-deja/g++.ext/array2.C
gcc/testsuite/g++.old-deja/g++.ext/bound1.C
gcc/testsuite/g++.old-deja/g++.jason/2371.C
gcc/testsuite/g++.old-deja/g++.jason/report.C
gcc/testsuite/g++.old-deja/g++.jason/tempinst1.C
gcc/testsuite/g++.old-deja/g++.mike/p11110.C
gcc/testsuite/g++.old-deja/g++.mike/p646.C
gcc/testsuite/g++.old-deja/g++.other/cleanup2.C
gcc/testsuite/g++.old-deja/g++.other/crash3.C
gcc/testsuite/g++.old-deja/g++.other/crash6.C
gcc/testsuite/g++.old-deja/g++.pt/crash28.C
gcc/testsuite/g++.old-deja/g++.pt/repo3.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/typename11.C
gcc/testsuite/g++.old-deja/g++.robertl/eb22.C
gcc/testsuite/g++.old-deja/g++.robertl/eb69.C