--- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-22
20:42 ---
Confirmed, a regression from 3.4.0 and 3.3.3.
--
What|Removed |Added
Status|UNCO
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-22
21:13 ---
Moving to 4.0.2 pre Mark.
--
What|Removed |Added
Target Milestone|3.4.5
--- Additional Comments From squell at alumina dot nl 2005-07-23 01:59
---
When I changed the function body by removing all "foo::"
qualifiers, I got the following;
int foo::f()
{
f_obj<&f> a; // ERROR: missing '>' in template argument list
f_obj b; // ERROR: foo::f in constant
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-23
02:03 ---
(In reply to comment #3)
> bar< ptr->f > a; // ERROR: `->' cannot appear in constant expression
> bar< &ptr->f > b; // ERROR: '>' missing in template argument
No, both of those are invalid as -> cannot be
--- Additional Comments From squell at alumina dot nl 2005-07-23 03:22
---
ptr->f is a constant expression, I believe, since it doesn't access any
object (see 5.19/4, C++ Std), because the expression will resolve to a
static member. But whether I am right or not:
I got to this testcase
--- Additional Comments From bangerth at dealii dot org 2005-07-23 04:51
---
In your example, ptr is a type not an object. operator-> isn't applicable
to types, only to objects.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22621
--- Additional Comments From squell at alumina dot nl 2005-07-23 16:26
---
(In reply to comment #6)
> In your example, ptr is a type not an object. operator-> isn't applicable
> to types, only to objects.
ptr _is_ an object. Please re-read the declaration carefully. All gcc versions
(
--- Additional Comments From squell at alumina dot nl 2005-07-24 00:56
---
(In reply to comment #4)
> > bar< ptr->f > a; // ERROR: `->' cannot appear in constant expression
> > bar< &ptr->f > b; // ERROR: '>' missing in template argument
> No, both of those are invalid as -> cannot be i
--
What|Removed |Added
Target Milestone|4.0.2 |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22621
--
What|Removed |Added
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW
--- Comment #9 from cvs-commit at gcc dot gnu dot org 2005-10-02 21:58
---
Subject: Bug 22621
CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]2005-10-02 21:58:08
Modified files:
gcc/cp : parser.c pt.c ChangeLog
gcc/testsuite
--- Comment #10 from cvs-commit at gcc dot gnu dot org 2005-10-02 21:58
---
Subject: Bug 22621
CVSROOT:/cvs/gcc
Module name:gcc
Branch: gcc-4_0-branch
Changes by: [EMAIL PROTECTED]2005-10-02 21:58:34
Modified files:
gcc/cp : parser.c
Added
--- Comment #11 from mmitchel at gcc dot gnu dot org 2005-10-02 22:05
---
Fixed in 4.0.3.
--
mmitchel at gcc dot gnu dot org changed:
What|Removed |Added
Sta
--- Comment #12 from reichelt at gcc dot gnu dot org 2005-10-03 14:43
---
Hi Mark,
your patch for the 4.0 branch seems to be broken:
The ChangeLog entries are missing and it seems responsible for
heavy breakage in the testsuite, see
http://gcc.gnu.org/ml/gcc-testresults/2005-10/msg0009
--- Comment #13 from mark at codesourcery dot com 2005-10-03 14:57 ---
Subject: Re: [3.4/4.0/4.1 Regression] Member function overloading
introduces syntax errors
reichelt at gcc dot gnu dot org wrote:
> --- Comment #12 from reichelt at gcc dot gnu dot org 2005-10-03 14:43
>
--- Comment #14 from cvs-commit at gcc dot gnu dot org 2005-10-03 15:05
---
Subject: Bug 22621
CVSROOT:/cvs/gcc
Module name:gcc
Branch: gcc-4_0-branch
Changes by: [EMAIL PROTECTED]2005-10-03 15:05:10
Modified files:
gcc/cp : ChangeLog parser
--- Comment #15 from pinskia at gcc dot gnu dot org 2005-10-03 16:37
---
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
Status|REOPENE
17 matches
Mail list logo