public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/29993] New: typdef declaration of cv-qualified function in class @ 2006-11-27 10:35 s__nakayama at infoseek dot jp 2006-11-27 17:17 ` [Bug c++/29993] " pinskia at gcc dot gnu dot org ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: s__nakayama at infoseek dot jp @ 2006-11-27 10:35 UTC (permalink / raw) To: gcc-bugs gcc rejects following valid code. class bar { typedef int func_type() const; }; -- Summary: typdef declaration of cv-qualified function in class Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: s__nakayama at infoseek dot jp http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29993 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/29993] typdef declaration of cv-qualified function in class 2006-11-27 10:35 [Bug c++/29993] New: typdef declaration of cv-qualified function in class s__nakayama at infoseek dot jp @ 2006-11-27 17:17 ` pinskia at gcc dot gnu dot org 2006-11-30 3:25 ` bangerth at dealii dot org ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-11-27 17:17 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from pinskia at gcc dot gnu dot org 2006-11-27 17:16 ------- Related to PR 6628. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn| |6628 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29993 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/29993] typdef declaration of cv-qualified function in class 2006-11-27 10:35 [Bug c++/29993] New: typdef declaration of cv-qualified function in class s__nakayama at infoseek dot jp 2006-11-27 17:17 ` [Bug c++/29993] " pinskia at gcc dot gnu dot org @ 2006-11-30 3:25 ` bangerth at dealii dot org 2007-01-29 13:50 ` doug dot gregor at gmail dot com ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: bangerth at dealii dot org @ 2006-11-30 3:25 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from bangerth at dealii dot org 2006-11-30 03:24 ------- Confirmed. PR 6628 is indeed fixed, but it appears as if it only has an effect for typedefs outside class declarations: --------------------- typedef int ptr1() const; // no error void foo () { typedef int ptr2() const; // no error } class C { typedef int ptr3() const; // error void bar () { typedef int ptr4() const; // no error } }; ------------------------- g/x> /home/bangerth/bin/gcc-4.2-pre/bin/c++ -c x.cc x.cc:10: error: ‘const’ and ‘volatile’ function specifiers on ‘ptr3’ invalid in type declaration It appears as if Doug's fix for PR 6628 isn't quite complete... W. -- bangerth at dealii dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bangerth at dealii dot org, | |dgregor at cs dot indiana | |dot edu Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-11-30 03:24:59 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29993 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/29993] typdef declaration of cv-qualified function in class 2006-11-27 10:35 [Bug c++/29993] New: typdef declaration of cv-qualified function in class s__nakayama at infoseek dot jp 2006-11-27 17:17 ` [Bug c++/29993] " pinskia at gcc dot gnu dot org 2006-11-30 3:25 ` bangerth at dealii dot org @ 2007-01-29 13:50 ` doug dot gregor at gmail dot com 2007-02-27 14:20 ` patchapp at dberlin dot org ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: doug dot gregor at gmail dot com @ 2007-01-29 13:50 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from doug dot gregor at gmail dot com 2007-01-29 13:50 ------- Patch here: http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01828.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29993 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/29993] typdef declaration of cv-qualified function in class 2006-11-27 10:35 [Bug c++/29993] New: typdef declaration of cv-qualified function in class s__nakayama at infoseek dot jp ` (2 preceding siblings ...) 2007-01-29 13:50 ` doug dot gregor at gmail dot com @ 2007-02-27 14:20 ` patchapp at dberlin dot org 2007-03-28 12:32 ` dgregor at gcc dot gnu dot org 2007-03-28 14:28 ` dgregor at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: patchapp at dberlin dot org @ 2007-02-27 14:20 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from patchapp at dberlin dot org 2007-02-27 14:20 ------- Subject: Bug number PR c++/29993 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01828.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29993 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/29993] typdef declaration of cv-qualified function in class 2006-11-27 10:35 [Bug c++/29993] New: typdef declaration of cv-qualified function in class s__nakayama at infoseek dot jp ` (3 preceding siblings ...) 2007-02-27 14:20 ` patchapp at dberlin dot org @ 2007-03-28 12:32 ` dgregor at gcc dot gnu dot org 2007-03-28 14:28 ` dgregor at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: dgregor at gcc dot gnu dot org @ 2007-03-28 12:32 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from dgregor at gcc dot gnu dot org 2007-03-28 13:31 ------- Subject: Bug 29993 Author: dgregor Date: Wed Mar 28 13:31:37 2007 New Revision: 123294 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123294 Log: 2007-03-28 Douglas Gregor <doug.gregor@gmail.com> PR c++/29993 * decl.c (grokdeclarator): Deal with cv-qualified function type typedefs in the same way for member and non-member functions. 2007-03-28 Douglas Gregor <doug.gregor@gmail.com> PR c++/29993 * g++.dg/other/cv_func2.C: New. Added: trunk/gcc/testsuite/g++.dg/other/cv_func2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29993 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/29993] typdef declaration of cv-qualified function in class 2006-11-27 10:35 [Bug c++/29993] New: typdef declaration of cv-qualified function in class s__nakayama at infoseek dot jp ` (4 preceding siblings ...) 2007-03-28 12:32 ` dgregor at gcc dot gnu dot org @ 2007-03-28 14:28 ` dgregor at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: dgregor at gcc dot gnu dot org @ 2007-03-28 14:28 UTC (permalink / raw) To: gcc-bugs ------- Comment #6 from dgregor at gcc dot gnu dot org 2007-03-28 15:28 ------- Committed fix to mainline. -- dgregor at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29993 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-03-28 14:28 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-11-27 10:35 [Bug c++/29993] New: typdef declaration of cv-qualified function in class s__nakayama at infoseek dot jp 2006-11-27 17:17 ` [Bug c++/29993] " pinskia at gcc dot gnu dot org 2006-11-30 3:25 ` bangerth at dealii dot org 2007-01-29 13:50 ` doug dot gregor at gmail dot com 2007-02-27 14:20 ` patchapp at dberlin dot org 2007-03-28 12:32 ` dgregor at gcc dot gnu dot org 2007-03-28 14:28 ` dgregor at gcc dot gnu dot org
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).