This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9960: g++ 3.2
- From: bangerth at dealii dot org
- To: bjs5075 at rit dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 5 Mar 2003 14:57:20 -0000
- Subject: Re: c++/9960: g++ 3.2
- Reply-to: bangerth at dealii dot org, bjs5075 at rit dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: g++ 3.2
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Wed Mar 5 14:57:19 2003
State-Changed-Why:
Confirmed. A reduced testcase is this:
----------------------
struct Base {
void foo();
template<class I>
void foo();
};
struct Derived : Base {
void (*funcptr)();
void bar() {
funcptr == foo;
}
};
----------------------------
It fails with 2.95, 3.0 and 3.2:
g/x> /home/bangerth/bin/gcc-3.2.2-pre/bin/c++ -c y.cc
y.cc: In member function `void Derived::bar()':
y.cc:12: Internal compiler error in decay_conversion, at cp/typeck.c:1679
However, it is already fixed in 3.3 and 3.4
Wolfgang
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9960