public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "simonb at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/31923] g++ accepts a storage-class-specifier on a template explicit specialization
Date: Mon, 18 Jun 2007 22:09:00 -0000	[thread overview]
Message-ID: <20070618220926.11026.qmail@sourceware.org> (raw)
In-Reply-To: <bug-31923-11271@http.gcc.gnu.org/bugzilla/>



------- Comment #3 from simonb at gcc dot gnu dot org  2007-06-18 22:09 -------
Subject: Bug 31923

Author: simonb
Date: Mon Jun 18 22:09:14 2007
New Revision: 125829

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125829
Log:
gcc/cp/ChangeLog
2007-06-15  Simon Baldwin <simonb@google.com>

        PR c++/31923
        * parser.c (cp_parser_single_declaration): Added check for storage
        class other than sc_none in parsed declaration, and a flag to indicate
        if the call is part of an explicit template specialization parse.
        * (cp_parser_explicit_specialization): Specialization check flag added
        to call to cp_parser_single_declaration(), set true.
        * (cp_parser_template_declaration_after_export): Specialization check
        flag added to call to cp_parser_single_declaration(), set false.
        * pt.c (check_explicit_specialization): Added code to copy visiblity
        and linkage from the templated function to the explicit specialization.

gcc/testsuite/ChangeLog
2007-06-15  Simon Baldwin <simonb@google.com>

        PR c++/31923
        * g++.dg/template/error25.C: New.
        * g++.dg/template/spec35.C: New.


Added:
    trunk/gcc/testsuite/g++.dg/template/error25.C
    trunk/gcc/testsuite/g++.dg/template/spec35.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


  parent reply	other threads:[~2007-06-18 22:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-14 19:47 [Bug c++/31923] New: " simon_baldwin at yahoo dot com
2007-05-29 22:54 ` [Bug c++/31923] " patchapp at dberlin dot org
2007-06-14 21:29 ` simon_baldwin at yahoo dot com
2007-06-18 22:09 ` simonb at gcc dot gnu dot org [this message]
2007-06-23 19:52 ` mmitchel at gcc dot gnu dot org
2007-06-25 17:24 ` simon_baldwin at yahoo dot com
2008-05-22 23:01 ` pinskia 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=20070618220926.11026.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).