c++/9123: [<3.2,3.3,3.4> regression ] Internal compiler error in do_SUBST at combine.c:434
ehrhardt@mathematik.uni-ulm.de
ehrhardt@mathematik.uni-ulm.de
Thu Jan 2 14:33:00 GMT 2003
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
More information about the Gcc-bugs
mailing list