public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: alexvn@bigfoot.com To: gcc-gnats@gcc.gnu.org Cc: alexv@scopus.co.il Subject: c++/2749: Internal compiler error while using template Date: Sat, 05 May 2001 23:16:00 -0000 [thread overview] Message-ID: <20010506060756.8472.qmail@sourceware.cygnus.com> (raw) >Number: 2749 >Category: c++ >Synopsis: Internal compiler error while using template >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sat May 05 23:16:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: alexvn@bigfoot.com >Release: g++ 2.95.3 >Organization: >Environment: Linux 2.2.17-21mdk >Description: Here is a bug-report. ### File ttt.C ### //------------- C++ code : BEGIN ------------- 1 2 template <typename XXX, typename YYY, typename ZZZ> 3 class BBB; 4 5 template <typename XXX, typename YYY> 6 class AAA 7 { // Line#7 8 template <typename ZZZ> friend BBB<XXX, YYY, ZZZ>; 9 }; 10 11 template <typename XXX, typename YYY, typename ZZZ> 12 class BBB {}; 13 14 int main (void) 15 { 16 AAA<int, char> a; // Line#16 17 return 0; 18 //------------- C++ code : END --------------- //------------- System : BEGIN ---------------- %uname -sr Linux 2.2.17-21mdk //------------- System : END ------------------ //------------- Compiling : BEGIN -------------- g++ -v -save-temps ttt.C Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/specs gcc version 2.95.3 19991030 (prerelease) /usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di586 -Dpentium -D__i586 -D__i586__ -D__pentium -D__pentium__ ttt.C ttt.ii GNU CPP version 2.95.3 19991030 (prerelease) (i386 Linux/ELF) #include "..." search starts here: #include <...> search starts here: /usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/../../../../include/g++-3 /usr/local/include /usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/../../../../i586-mandrake-linux/include /usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/include /usr/include End of search list. The following default directories have been omitted from the search path: End of omitted list. /usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/cc1plus ttt.ii -quiet -dumpbase ttt.cc -version -o ttt.s GNU C++ version 2.95.3 19991030 (prerelease) (i586-mandrake-linux) compiled by GNU C version 2.95.3 19991030 (prerelease). ttt.C: In instantiation of `AAA<int,char>': ttt.C:16: instantiated from here ttt.C:7: Internal compiler error. ttt.C:7: Please submit a full bug report. ttt.C:7: See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions. //------------- Compiling : BEGIN -------------- //------------- File ttt.ii : BEGIN --------------- # 1 "ttt.C" template <typename XXX, typename YYY, typename ZZZ> class BBB; template <typename XXX, typename YYY> class AAA { template <typename ZZZ> friend BBB<XXX, YYY, ZZZ>; }; template <typename XXX, typename YYY, typename ZZZ> class BBB {}; int main (void) { AAA<int, char> a; return 0; } //------------- File ttt.ii : BEGIN --------------- ============================ Alex Vinokur mailto:alexvn@bigfoot.com ============================ >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
reply other threads:[~2001-05-05 23:16 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20010506060756.8472.qmail@sourceware.cygnus.com \ --to=alexvn@bigfoot.com \ --cc=alexv@scopus.co.il \ --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).