public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/3434: tree-check fails on int template arg as static initializer
@ 2001-06-26 20:46 Paul Burchard
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Burchard @ 2001-06-26 20:46 UTC (permalink / raw)
  To: gcc-gnats; +Cc: burchard

>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:


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c++/3434: tree-check fails on int template arg as static initializer
@ 2001-06-28  0:23 aoliva
  0 siblings, 0 replies; 2+ messages in thread
From: aoliva @ 2001-06-28  0:23 UTC (permalink / raw)
  To: burchard, gcc-bugs, gcc-prs, nobody

Synopsis: tree-check fails on int template arg as static initializer

State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Thu Jun 28 00:23:34 2001
State-Changed-Why:
    Duplicate of 3433

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3434&database=gcc


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-06-28  0:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-26 20:46 c++/3434: tree-check fails on int template arg as static initializer Paul Burchard
2001-06-28  0:23 aoliva

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).