This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/9123: [<3.2,3.3,3.4> regression ] Internal compiler error in do_SUBST at combine.c:434


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]