public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/29475] [4.0/4.1/4.2/4.3 Regression] incomplete template diagnostics. Date: Mon, 20 Nov 2006 21:16:00 -0000 [thread overview] Message-ID: <20061120211602.30433.qmail@sourceware.org> (raw) In-Reply-To: <bug-29475-7667@http.gcc.gnu.org/bugzilla/> ------- Comment #3 from mmitchel at gcc dot gnu dot org 2006-11-20 21:16 ------- Subject: Bug 29475 Author: mmitchel Date: Mon Nov 20 21:15:44 2006 New Revision: 119027 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119027 Log: PR c++/29475 * cp-tree.h (enforce_access, perform_or_defer_access_check): Added an extra argument that represents the declaration to use to print potential error messages. * init.c (build_offset_ref): Adjusted the call to perform_or_defer_access_check. * class.c (alter_access, resolve_address_of_overloaded_function): Likewise. * decl.c (make_typename_type, make_unbound_class_template): Likewise. * search.c (lookup_member): Likewise. * friend.c (add_friend): Likewise. * parser.c (cp_parser_template_id, cp_parser_pre_parsed_nested_name_specifier): Likewise. * semantics.c (finish_non_static_data_member, check_accessibility_of_qualified_id, finish_id_expression): Likewise. (pop_to_parent_deferring_access_checks, perform_access_checks, perform_or_defer_access_check): Adjusted the call to enforce_access. * call.c (enforce_access): Use the new extra argument to build the error message. (build_op_delete_call): Adjusted the call to perform_or_defer_access_check. (build_over_call): Likewise. PR c++/29475 * g++.dg/template/access19.C: New test. * g++.old-deja/g++.other/access11.C: Adjusted the line where the error is reported. Added: trunk/gcc/testsuite/g++.dg/template/access19.C (with props) Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c trunk/gcc/cp/class.c trunk/gcc/cp/cp-tree.h trunk/gcc/cp/decl.c trunk/gcc/cp/friend.c trunk/gcc/cp/init.c trunk/gcc/cp/parser.c trunk/gcc/cp/search.c trunk/gcc/cp/semantics.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.old-deja/g++.other/access11.C Propchange: trunk/gcc/testsuite/g++.dg/template/access19.C ('svn:executable' added) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29475
next prev parent reply other threads:[~2006-11-20 21:16 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-29475-7667@http.gcc.gnu.org/bugzilla/> 2006-10-15 14:52 ` [Bug c++/29475] [4.0/4.1/4.2 " pinskia at gcc dot gnu dot org 2006-10-15 21:29 ` mmitchel at gcc dot gnu dot org 2006-11-05 20:40 ` [Bug c++/29475] [4.0/4.1/4.2/4.3 " patchapp at dberlin dot org 2006-11-20 21:16 ` mmitchel at gcc dot gnu dot org [this message] 2006-11-20 22:56 ` simartin at users dot sourceforge dot net 2006-12-16 8:52 ` simartin at gcc dot gnu dot org 2007-02-03 20:40 ` [Bug c++/29475] [4.0/4.1/4.2 " gdr at gcc dot gnu dot org 2007-02-03 21:03 ` pinskia at gcc dot gnu dot org 2007-02-14 8:18 ` pluto at agmk dot net 2007-02-14 9:37 ` mmitchel at gcc dot gnu dot org 2007-02-22 19:58 ` simartin at gcc dot gnu dot org 2007-02-22 20:09 ` [Bug c++/29475] [4.0/4.1 " simartin at gcc dot gnu dot org 2007-02-22 20:24 ` pluto at agmk dot net
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20061120211602.30433.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).