This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9123: [<3.2,3.3,3.4> regression ] Internal compiler error in do_SUBST at combine.c:434
- From: ehrhardt at mathematik dot uni-ulm dot de
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, khindenburg at cherrynebula dot net, nobody at gcc dot gnu dot org
- Date: 2 Jan 2003 14:33:40 -0000
- Subject: Re: c++/9123: [<3.2,3.3,3.4> regression ] Internal compiler error in do_SUBST at combine.c:434
- Reply-to: ehrhardt at mathematik dot uni-ulm dot de, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, khindenburg at cherrynebula dot net, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Old Synopsis: Internal compiler error in do_SUBST
New Synopsis: [<3.2,3.3,3.4> regression ] Internal compiler error in do_SUBST at combine.c:434
State-Changed-From-To: open->analyzed
State-Changed-By: cae
State-Changed-When: Thu Jan 2 06:33:39 2003
State-Changed-Why:
I can confirm this on 3.2, 3.4 gives an error with the original example
but ICEs with this reduced code snippet below as well, 2.95.2 compiles the
code just fine. Compile with -O2.
template<class T>
inline T clamp (const T in, const T min, const T max)
{
return in <= min ? min : in >= max ? max : in ;
}
struct TArray
{
unsigned char &operator[] (int index) const { }
};
TArray S_sfx;
int sc_Number;
static void S_AddSNDINFO (int lump)
{
S_sfx[0] = clamp<unsigned char> (sc_Number, 0, 255);
}
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9123