public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Paul Burchard <burchard@pobox.com> To: gcc-gnats@gcc.gnu.org Cc: burchard@pobox.com Subject: c++/3434: tree-check fails on int template arg as static initializer Date: Tue, 26 Jun 2001 20:46:00 -0000 [thread overview] Message-ID: <3B3955C6.CCEC4C61@pobox.com> (raw) >Number: 3434 >Category: c++ >Synopsis: tree-check fails on int template arg as static initializer >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Tue Jun 26 20:46:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Paul Burchard >Release: 3.1 20010626 (experimental) >Organization: UCLA >Environment: System: Linux aurora.localdomain 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown Architecture: i686 Linux 2.4.2-2 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ../gcc/configure --prefix=/usr/local >Description: The following code: template<unsigned int Dimension> struct tensor1 { static const unsigned int dimension[1] = { Dimension }; }; Yields the internal error: bug.cc:3: Tree check: expected integer_cst, have minus_expr in process_init_constructor, at cp/typeck2.c:680 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2001-06-26 20:46 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-06-26 20:46 Paul Burchard [this message] 2001-06-28 0:23 aoliva
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=3B3955C6.CCEC4C61@pobox.com \ --to=burchard@pobox.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).