[Bug c++/97890] Abstract virtual classes suddenly allowed as parameter types ?

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Wed Nov 18 10:41:28 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97890

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
For C++ testsuite file g++.dg/other/abstract8.C, the number
of errors seems to have gone down from 21 to 16.

Here is a diff of the errors:

$ diff /tmp/00 /tmp/11
1d0
< ./g++.dg/other/abstract8.C:13:9: error: invalid abstract type ‘A’ for ‘ar’
4,7d2
< ./g++.dg/other/abstract8.C:16:15: error: cannot allocate an object of
abstract type ‘A’
< ./g++.dg/other/abstract8.C:19:10: error: cannot declare variable ‘a’ to be of
abstract type ‘A’
< ./g++.dg/other/abstract8.C:21:1: error: invalid abstract return type ‘A’
< ./g++.dg/other/abstract8.C:22:9: error: cannot declare parameter to be of
abstract type ‘A’
9c4
< ./g++.dg/other/abstract8.C:26:1: error: invalid abstract return type ‘A’
---
> ./g++.dg/other/abstract8.C:25:4: error: creating array of ‘A’, which is an abstract class type
$


More information about the Gcc-bugs mailing list