public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9123: [<3.2,3.3,3.4> regression ] Internal compiler error in do_SUBST at combine.c:434
@ 2003-01-02 14:33 ehrhardt
  0 siblings, 0 replies; only message in thread
From: ehrhardt @ 2003-01-02 14:33 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, khindenburg, nobody

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-02 14:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-02 14:33 c++/9123: [<3.2,3.3,3.4> regression ] Internal compiler error in do_SUBST at combine.c:434 ehrhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).