diff options
| author | lerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-24 15:47:24 +0000 |
|---|---|---|
| committer | lerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-24 15:47:24 +0000 |
| commit | 6bb14837b9d1643137a60da99a871bd564889c56 (patch) | |
| tree | 861d7f95e4d715c36d8af56b7a637ef2010680f8 /gcc/cp/typeck2.c | |
| parent | c5c22354ea3b9974dbb8491a86dd930d06d53bf0 (diff) | |
| download | ppe42-gcc-6bb14837b9d1643137a60da99a871bd564889c56.tar.gz ppe42-gcc-6bb14837b9d1643137a60da99a871bd564889c56.zip | |
PR c++/9602
* typeck2.c (abstract_virtuals_error): Don't check when
TYPE is still template parameter dependent.
* g++.dg/template/friend16.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63362 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/typeck2.c')
| -rw-r--r-- | gcc/cp/typeck2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c index c7dcb527b82..5758bf4ae2f 100644 --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -143,6 +143,11 @@ abstract_virtuals_error (decl, type) CLASSTYPE_PURE_VIRTUALS holds the inline friends. */ return 0; + if (dependent_type_p (type)) + /* For a dependent type, we do not yet know which functions are pure + virtuals. */ + return 0; + u = CLASSTYPE_PURE_VIRTUALS (type); if (decl) { |

