aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/typeck2.c
diff options
context:
space:
mode:
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>2003-02-24 15:47:24 +0000
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>2003-02-24 15:47:24 +0000
commit9e236a9d6657991f841827676e2b5437cad832d4 (patch)
tree861d7f95e4d715c36d8af56b7a637ef2010680f8 /gcc/cp/typeck2.c
parent44ee6e9e621d709c5cfed564ed7f9f97cb1d086a (diff)
downloadgcc-9e236a9d6657991f841827676e2b5437cad832d4.zip
gcc-9e236a9d6657991f841827676e2b5437cad832d4.tar.gz
gcc-9e236a9d6657991f841827676e2b5437cad832d4.tar.bz2
re PR c++/9602 (Total confusion about template/friend/virtual/abstract)
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. From-SVN: r63362
Diffstat (limited to 'gcc/cp/typeck2.c')
-rw-r--r--gcc/cp/typeck2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c
index c7dcb52..5758bf4 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)
{