From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Burchard To: gcc-gnats@gcc.gnu.org Cc: burchard@pobox.com Subject: c++/3433: tree-check fails on int template arg as initializer Date: Tue, 26 Jun 2001 20:36:00 -0000 Message-id: <200106270334.f5R3YrM04895@aurora.localdomain> X-SW-Source: 2001-06/msg01115.html List-Id: >Number: 3433 >Category: c++ >Synopsis: tree-check fails on int template arg as 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:36: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 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: