diff options
author | Mark Mitchell <mark@codesourcery.com> | 2006-08-26 16:23:33 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2006-08-26 16:23:33 +0000 |
commit | eff3a27644c419c425e0e1a1585abefff3695ca5 (patch) | |
tree | 0365ed4c2d70b546d5308383eda316cb067b2b23 /gcc/fortran | |
parent | fa1ff4eb8cb4ec1474d6ab338b6840a2140b588d (diff) | |
download | gcc-eff3a27644c419c425e0e1a1585abefff3695ca5.zip gcc-eff3a27644c419c425e0e1a1585abefff3695ca5.tar.gz gcc-eff3a27644c419c425e0e1a1585abefff3695ca5.tar.bz2 |
re PR c++/28588 (static private function)
PR c++/28588
* class.c (resolve_address_of_overloaded_function): Add
access_path parameter. Perform access checks.
(instantiate_type): Adjust call to
resolve_address_of_overloaded_function. Remove unnecessary code.
* tree.c (is_overloaded_fn): Document. Return 2 when there are
acutally multiple functions.
(really_overloaded_fn): Use is_overloaded_fn.
* mangle.c (write_expression): Handle BASELINKs.
* cp-tree.h (really_overloaded_fn): Return bool.
(baselink_for_fns): Declare.
* search.c (lookup_member): Check access for single static
functions here.
* pt.c (convert_nontype_argument_function): Handle BASELINKs.
(tsubst_copy_and_build): Generate BASELINKs for template-ids.
* semantics.c (finish_call_expr): Use baselink_for_fns.
(baselink_for_fns): New function.
(finish_id_expression): Use it.
* parser.c (cp_parser_template_argument): Don't strip BASELINKs.
PR c++/28595
* pt.c (tsubst): Issue errors about attempts to create VLAs at
template-instantiation time.
PR c++/28588
* g++.dg/inherit/access6.C: New test.
* g++.dg/inherit/access7.C: Likewise.
PR c++/28595
* g++.dg/template/array15.C: New test.
* g++.dg/template/crash2.C: Tweak error markers.
From-SVN: r116468
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions