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++/27339] [4.1/4.2 Regression] out-of-class definition of value template parameter with private type
Date: Tue, 16 May 2006 05:41:00 -0000	[thread overview]
Message-ID: <20060516054020.7999.qmail@sourceware.org> (raw)
In-Reply-To: <bug-27339-12611@http.gcc.gnu.org/bugzilla/>



------- Comment #3 from mmitchel at gcc dot gnu dot org  2006-05-16 05:40 -------
Subject: Bug 27339

Author: mmitchel
Date: Tue May 16 05:39:49 2006
New Revision: 113819

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113819
Log:
        PR c++/27339
        * cp-tree.h (perform_access_checks): New function.
        * semantics.c (perform_access_checks): New function.
        (perform_deferred_access_checks): Use it.
        * parser.c (cp_parser_simple_declaration): Adjust call to
        cp_parser_init_declarator.
        (cp_parser_type_parameter): Do not defer checks in default
        arguments.
        (cp_parser_explicit_specialization): Adjust call to
        cp_parser_single_declaration.
        (cp_parser_init_declarator): Perform template-parameter access
        checks. 
        (cp_parser_parameter_declaration): Do not defer checks for
        template parameter default arguments.
        (cp_parser_template_declaration_after_export): Gather access
        checks for template parameters, and pass them to
        cp_parser_single_declaration.
        (cp_parser_template_parameter_access_checks): New function.
        (cp_parser_single_declaration): Add checks parameter.
        PR c++/27339
        * g++.dg/parser/access8.C: Adjust error marker.
        * g++.dg/template/access17.C: New test.
        * g++.dg/template/access18.C: Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/template/access17.C
    trunk/gcc/testsuite/g++.dg/template/access18.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/parse/access8.C


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27339


  parent reply	other threads:[~2006-05-16  5:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-27 16:28 [Bug c++/27339] New: defining out-of-class specialization " dirkmoermans at gmail dot com
2006-04-27 19:29 ` [Bug c++/27339] [4.1/4.2 Regression]defining " pinskia at gcc dot gnu dot org
2006-04-30 16:29 ` [Bug c++/27339] [4.1/4.2 Regression] out-of-class definition " pinskia at gcc dot gnu dot org
2006-05-02 16:17 ` janis at gcc dot gnu dot org
2006-05-14 22:31 ` mmitchel at gcc dot gnu dot org
2006-05-15 23:16 ` mmitchel at gcc dot gnu dot org
2006-05-16  5:41 ` mmitchel at gcc dot gnu dot org [this message]
2006-05-16  5:43 ` mmitchel at gcc dot gnu dot org
2006-05-16 14:56 ` [Bug c++/27339] [4.1 " mmitchel at gcc dot gnu dot org
2006-05-16 14:56 ` mmitchel at gcc dot gnu dot org

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=20060516054020.7999.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: link
Be 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).