public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: daniel_wilkerson@yahoo.com To: gcc-gnats@gcc.gnu.org Subject: c++/5638: Compiler said: Internal compiler error Date: Fri, 08 Feb 2002 22:36:00 -0000 [thread overview] Message-ID: <20020209062946.6696.qmail@sources.redhat.com> (raw) >Number: 5638 >Category: c++ >Synopsis: Compiler said: Internal compiler error >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Feb 08 22:36:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: daniel_wilkerson@yahoo.com >Release: egcs-2.91.66 >Organization: >Environment: Red Hat 6.2 >Description: I tried to compile the following (erronious) C++ file, and g++ said it had an internal error and I should report it. Here is the error message. --------------------------- g++ template.cxx template.cxx:10: Internal compiler error. template.cxx:10: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'. template.cxx:10: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details. Compilation exited abnormally with code 1 at Fri Feb 8 23:03:23 --------------------------- Here is the input file. --------------------------- // Test templates. #include <iostream> template <class TYPE> TYPE min(TYPE x, TYPE y) { return x < y ? x : y; } TYPE max(TYPE x, TYPE y) { return x < y ? y : x; } int main(int argc, char **argv) { int a = 1; int b = 2; cout << "min == "<< min(a, b)<< endl; cout << "max == "<< max(a, b)<< endl; } ----------------------------- Have fun. Daniel >How-To-Repeat: Try to compile the file. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-02-09 6:36 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-02-08 22:36 daniel_wilkerson [this message] 2002-02-08 23:20 zack 2002-02-08 23:26 Zack Weinberg
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020209062946.6696.qmail@sources.redhat.com \ --to=daniel_wilkerson@yahoo.com \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).