diff options
author | Jason Merrill <jason@redhat.com> | 2015-04-14 11:29:34 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2015-04-14 11:29:34 -0400 |
commit | 0f19e7adef3f2818fd0b363306791c23b0656b62 (patch) | |
tree | f9ada431677cd0ac0ee688c4c08a73eaee87b231 /gcc/cp/name-lookup.c | |
parent | 688e531e4b84d9250646715658179a5f72753609 (diff) | |
download | gcc-0f19e7adef3f2818fd0b363306791c23b0656b62.zip gcc-0f19e7adef3f2818fd0b363306791c23b0656b62.tar.gz gcc-0f19e7adef3f2818fd0b363306791c23b0656b62.tar.bz2 |
re PR c++/65721 (Internal compiler error segmentation fault)
PR c++/65721
* name-lookup.c (do_class_using_decl): Complain about specifying
the current class even if there are dependent bases.
From-SVN: r222096
Diffstat (limited to 'gcc/cp/name-lookup.c')
-rw-r--r-- | gcc/cp/name-lookup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index e3f7cca..9e4e0e3 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -3408,7 +3408,7 @@ do_class_using_decl (tree scope, tree name) tf_warning_or_error); if (b_kind < bk_proper_base) { - if (!bases_dependent_p) + if (!bases_dependent_p || b_kind == bk_same_type) { error_not_base_type (scope, current_class_type); return NULL_TREE; |