This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15287] [3.4/3.5 Regression] G++ fails when encountering the combined `[]' and `.*' operators in the context of templatized method/function
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 May 2004 23:15:13 -0000
- Subject: [Bug c++/15287] [3.4/3.5 Regression] G++ fails when encountering the combined `[]' and `.*' operators in the context of templatized method/function
- References: <20040504225415.15287.wirawan0@softhome.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-04 23:15 -------
Confirmed.
Reduced to:
-----------------------------
typedef __SIZE_TYPE__ size_t;
struct Structure {}; // empty, just a dummy placeholder
extern Structure& t;
struct Vector2
{
typedef Structure& reference;
reference operator[](int x) {return t;}
};
Vector2 Array;
template <int>//t
void Print(void (Structure::*BoolMethod)())
{
size_t C = 0;
(Array[C].*BoolMethod)();
}
-----------------------------
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Known to fail| |3.4.0 3.5.0
Known to work| |3.3.3
Last reconfirmed|0000-00-00 00:00:00 |2004-05-04 23:15:11
date| |
Summary|G++ fails when encountering |[3.4/3.5 Regression] G++
|the combined `[]' and `.*' |fails when encountering the
|operators in the context of |combined `[]' and `.*'
|templatized method/function |operators in the context of
| |templatized method/function
Target Milestone|--- |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15287