Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 2220 invoked from network); 22 Mar 2007 04:49:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Mar 2007 04:49:55 -0000 Received: (qmail 88573 invoked by uid 500); 22 Mar 2007 04:50:01 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 88560 invoked by uid 500); 22 Mar 2007 04:50:01 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 88497 invoked by uid 99); 22 Mar 2007 04:50:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2007 21:50:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2007 21:49:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 43182714075 for ; Wed, 21 Mar 2007 21:49:32 -0700 (PDT) Message-ID: <8101530.1174538972160.JavaMail.jira@brutus> Date: Wed, 21 Mar 2007 21:49:32 -0700 (PDT) From: "Mark Brown (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Commented: (STDCXX-351) [gcc 3.4.6] error on static const int expression as an array dimension in template code In-Reply-To: <30975161.1173401784525.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483012 ] Mark Brown commented on STDCXX-351: ----------------------------------- The test compiles now so your change must have fixed it. > [gcc 3.4.6] error on static const int expression as an array dimension in template code > --------------------------------------------------------------------------------------- > > Key: STDCXX-351 > URL: https://issues.apache.org/jira/browse/STDCXX-351 > Project: C++ Standard Library > Issue Type: Bug > Components: External > Environment: gcc 3.4.6 > Reporter: Martin Sebor > Assigned To: Martin Sebor > Fix For: 4.2 > > > The well-formed program below fails to compile with gcc 3.4.6 (gcc 4.1 does fine): > $ cat t.cpp && gcc --version && gcc -pedantic t.cpp > template struct S { static const int N = 1; }; > template > void foo () { > static const int N = S::N; > static int a [S::N]; > static int b [N]; > } > int main () { foo(); } > gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3) > Copyright (C) 2006 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > t.cpp: In function `void foo()': > t.cpp:7: error: ISO C++ forbids variable-size array `b' -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.