[Bug c++/29993] typdef declaration of cv-qualified function in class
--- 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=gccview=revrev=123294 Log: 2007-03-28 Douglas Gregor [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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
[Bug c++/29993] typdef declaration of cv-qualified function in class
--- 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
[Bug c++/29993] typdef declaration of cv-qualified function in class
--- 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
[Bug c++/29993] typdef declaration of cv-qualified function in class
--- 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
[Bug c++/29993] typdef declaration of cv-qualified function in class
--- 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: #8216;const#8217; and #8216;volatile#8217; function specifiers on #8216;ptr3#8217; 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|-00-00 00:00:00 |2006-11-30 03:24:59 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29993
[Bug c++/29993] typdef declaration of cv-qualified function in class
--- 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