This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31064] [4.1/4.2/4.3 Regression] Internal Compiler Error when using operator& from template function
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Mar 2007 10:07:21 -0000
- Subject: [Bug c++/31064] [4.1/4.2/4.3 Regression] Internal Compiler Error when using operator& from template function
- References: <bug-31064-14198@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rguenth at gcc dot gnu dot org 2007-03-07 10:07 -------
Confirmed. For reference:
struct Dummy
{
int operator&(signed int &) { return 4; }
};
struct ICE
{
template <typename T>
void aj(void)
{
signed int kalle = 9;
int size = Dummy() & kalle;
char buffer[size];
}
};
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |rejects-valid
Known to fail| |3.4.6 4.0.4 4.1.2
Known to work| |3.3.6
Last reconfirmed|0000-00-00 00:00:00 |2007-03-07 10:07:21
date| |
Summary|Internal Compiler Error when|[4.1/4.2/4.3 Regression]
|using operator& from |Internal Compiler Error when
|template function |using operator& from
| |template function
Target Milestone|--- |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31064