This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/3433: tree-check fails on int template arg as initializer
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/3433: tree-check fails on int template arg as initializer
- From: Paul Burchard <burchard at aurora dot localdomain>
- Date: Tue, 26 Jun 2001 22:34:53 -0500
- Cc: burchard at pobox dot com
>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<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: