public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: tom@dietel.net To: gcc-gnats@gcc.gnu.org Subject: c++/2996: Internal compiler error on typecast (T[][]...) Date: Tue, 29 May 2001 12:46:00 -0000 [thread overview] Message-ID: <20010529194507.9928.qmail@sourceware.cygnus.com> (raw) >Number: 2996 >Category: c++ >Synopsis: Internal compiler error on typecast (T[][]...) >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Tue May 29 12:46:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Thomas Dietel >Release: "egcs-2.91.66", "gcc version 2.95.4 20010319 (Debian prerelease)" and "gcc version 2.96 20000731" >Organization: >Environment: Redhat 6.2/7.0, and Debian(testing) >Description: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1plus StArray.ii -quiet -version -o StArray.s GNU C++ version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386-redhat-linux) compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release). StArray.cxx: In method `T StArray<T>::operator ()(int, int = 0, int = 0, int = 0, int = 0)': StArray.cxx:20: Internal compiler error. StArray.cxx:20: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'. StArray.cxx:20: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for details. >How-To-Repeat: Command line: g++ -v -save-temps -c -o StArray.o StArray.ii .ii file: # 1 "StArray.cxx" # 1 "StArray.h" 1 template <class T> class StArray { public: StArray(int dim1, int dim2=1, int dim3=1, int dim4=1, int dim5=1); ~StArray(); T operator() (int a1, int a2=0, int a3=0, int a4=0, int a5=0); private: T *****data; }; # 2 "StArray.cxx" 2 template <class T> StArray<T>::StArray(int dim1, int dim2=1, int dim3=1, int dim4=1, int dim5=1) { data = new T[dim1][dim2][dim3][dim4][dim5]; }; template <class T> StArray<T>::~StArray() { delete[] data; } template <class T> T StArray<T>::operator() (int a1, int a2=0, int a3=0, int a4=0, int a5=0) { return (T[dim1][dim2][dim3][dim4][dim5])data[a1][a2][a3][a4][a5]; } >Fix: None >Release-Note: >Audit-Trail: >Unformatted:
reply other threads:[~2001-05-29 12:46 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=20010529194507.9928.qmail@sourceware.cygnus.com \ --to=tom@dietel.net \ --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).