* [Bug c++/33553] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
@ 2007-09-25 15:04 ` e dot tadeu at gmail dot com
2007-09-25 15:23 ` e dot tadeu at gmail dot com
` (17 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: e dot tadeu at gmail dot com @ 2007-09-25 15:04 UTC (permalink / raw)
To: gcc-bugs
X-Bugzilla-Reason: CC
------- Comment #1 from e dot tadeu at gmail dot com 2007-09-25 15:04 -------
Created an attachment (id=14251)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14251&action=view)
Test case
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
2007-09-25 15:04 ` [Bug c++/33553] " e dot tadeu at gmail dot com
@ 2007-09-25 15:23 ` e dot tadeu at gmail dot com
2007-09-25 23:29 ` [Bug c++/33553] [4.2/4.3 Regression] " pinskia at gcc dot gnu dot org
` (16 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: e dot tadeu at gmail dot com @ 2007-09-25 15:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from e dot tadeu at gmail dot com 2007-09-25 15:23 -------
s/template method that is inside a template method/template method that is
inside a template CLASS
(In reply to comment #0)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] [4.2/4.3 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
2007-09-25 15:04 ` [Bug c++/33553] " e dot tadeu at gmail dot com
2007-09-25 15:23 ` e dot tadeu at gmail dot com
@ 2007-09-25 23:29 ` pinskia at gcc dot gnu dot org
2007-09-25 23:32 ` pinskia at gcc dot gnu dot org
` (15 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-09-25 23:29 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Summary|Bogus "array bound is not an|[4.2/4.3 Regression] Bogus
|integer constant" for |"array bound is not an
|parameter in template method|integer constant" for
|of template class |parameter in template method
| |of template class
Target Milestone|--- |4.2.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] [4.2/4.3 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
` (2 preceding siblings ...)
2007-09-25 23:29 ` [Bug c++/33553] [4.2/4.3 Regression] " pinskia at gcc dot gnu dot org
@ 2007-09-25 23:32 ` pinskia at gcc dot gnu dot org
2007-09-27 8:58 ` [Bug c++/33553] [4.1/4.2/4.3 " jakub at gcc dot gnu dot org
` (14 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-09-25 23:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2007-09-25 23:32 -------
Confirmed, reduced testcase:
template <class T_> struct SizeFor_ { static const int Size = 2; };
template <class R_>
struct Test {
template <class T_>
void test_array(int (&arr)[SizeFor_<T_>::Size]);
};
Test<int> p2;
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-09-25 23:32:46
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] [4.1/4.2/4.3 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
` (3 preceding siblings ...)
2007-09-25 23:32 ` pinskia at gcc dot gnu dot org
@ 2007-09-27 8:58 ` jakub at gcc dot gnu dot org
2007-09-28 4:15 ` mmitchel at gcc dot gnu dot org
` (13 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-09-27 8:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2007-09-27 08:58 -------
Introduced by PR28595 fix.
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116468
or for 4.1:
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116471
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|4.2.0 4.3.0 |4.1.2 4.2.0 4.3.0
Summary|[4.2/4.3 Regression] Bogus |[4.1/4.2/4.3 Regression]
|"array bound is not an |Bogus "array bound is not an
|integer constant" for |integer constant" for
|parameter in template method|parameter in template method
|of template class |of template class
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] [4.1/4.2/4.3 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
` (4 preceding siblings ...)
2007-09-27 8:58 ` [Bug c++/33553] [4.1/4.2/4.3 " jakub at gcc dot gnu dot org
@ 2007-09-28 4:15 ` mmitchel at gcc dot gnu dot org
2007-10-09 19:30 ` mmitchel at gcc dot gnu dot org
` (12 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-09-28 4:15 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] [4.1/4.2/4.3 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
` (5 preceding siblings ...)
2007-09-28 4:15 ` mmitchel at gcc dot gnu dot org
@ 2007-10-09 19:30 ` mmitchel at gcc dot gnu dot org
2008-01-25 15:48 ` rguenth at gcc dot gnu dot org
` (11 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-10-09 19:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from mmitchel at gcc dot gnu dot org 2007-10-09 19:21 -------
Change target milestone to 4.2.3, as 4.2.2 has been released.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.2 |4.2.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] [4.1/4.2/4.3 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
` (6 preceding siblings ...)
2007-10-09 19:30 ` mmitchel at gcc dot gnu dot org
@ 2008-01-25 15:48 ` rguenth at gcc dot gnu dot org
2008-01-30 18:26 ` ebotcazou at gcc dot gnu dot org
` (10 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-01-25 15:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2008-01-25 15:43 -------
This should be P1 on the 4.1 branch (at it is a regression on the branch), but
we don't have separate priorities there and there will be no future releases
from that branch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] [4.1/4.2/4.3 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
` (7 preceding siblings ...)
2008-01-25 15:48 ` rguenth at gcc dot gnu dot org
@ 2008-01-30 18:26 ` ebotcazou at gcc dot gnu dot org
2008-01-30 21:55 ` bangerth at dealii dot org
` (9 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-01-30 18:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from ebotcazou at gcc dot gnu dot org 2008-01-30 17:35 -------
> This should be P1 on the 4.1 branch (at it is a regression on the branch), but
> we don't have separate priorities there and there will be no future releases
> from that branch.
This is still "critical" on the mainline.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] [4.1/4.2/4.3 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
` (8 preceding siblings ...)
2008-01-30 18:26 ` ebotcazou at gcc dot gnu dot org
@ 2008-01-30 21:55 ` bangerth at dealii dot org
2008-01-30 22:14 ` mmitchel at gcc dot gnu dot org
` (8 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: bangerth at dealii dot org @ 2008-01-30 21:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from bangerth at dealii dot org 2008-01-30 20:26 -------
I agree. This is valid and common code and we need to be able to compile it.
I would rate this as a blocker.
W.
--
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mmitchel at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] [4.1/4.2/4.3 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
` (9 preceding siblings ...)
2008-01-30 21:55 ` bangerth at dealii dot org
@ 2008-01-30 22:14 ` mmitchel at gcc dot gnu dot org
2008-02-01 17:04 ` jsm28 at gcc dot gnu dot org
` (7 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2008-01-30 22:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from mmitchel at gcc dot gnu dot org 2008-01-30 20:40 -------
I agree that this is P1..
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] [4.1/4.2/4.3 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
` (10 preceding siblings ...)
2008-01-30 22:14 ` mmitchel at gcc dot gnu dot org
@ 2008-02-01 17:04 ` jsm28 at gcc dot gnu dot org
2008-02-04 12:56 ` jakub at gcc dot gnu dot org
` (6 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-02-01 17:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from jsm28 at gcc dot gnu dot org 2008-02-01 16:54 -------
4.2.3 is being released now, changing milestones of open bugs to 4.2.4.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.3 |4.2.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] [4.1/4.2/4.3 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
` (11 preceding siblings ...)
2008-02-01 17:04 ` jsm28 at gcc dot gnu dot org
@ 2008-02-04 12:56 ` jakub at gcc dot gnu dot org
2008-02-04 15:48 ` jakub at gcc dot gnu dot org
` (5 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-02-04 12:56 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2007-09-25 23:32:46 |2008-02-04 12:55:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] [4.1/4.2/4.3 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
` (12 preceding siblings ...)
2008-02-04 12:56 ` jakub at gcc dot gnu dot org
@ 2008-02-04 15:48 ` jakub at gcc dot gnu dot org
2008-02-05 20:05 ` jakub at gcc dot gnu dot org
` (4 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-02-04 15:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from jakub at gcc dot gnu dot org 2008-02-04 15:47 -------
http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00087.html
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2008-
| |02/msg00087.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] [4.1/4.2/4.3 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
` (13 preceding siblings ...)
2008-02-04 15:48 ` jakub at gcc dot gnu dot org
@ 2008-02-05 20:05 ` jakub at gcc dot gnu dot org
2008-02-05 20:08 ` [Bug c++/33553] [4.1/4.2 " jakub at gcc dot gnu dot org
` (3 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-02-05 20:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from jakub at gcc dot gnu dot org 2008-02-05 20:04 -------
Subject: Bug 33553
Author: jakub
Date: Tue Feb 5 20:03:30 2008
New Revision: 132126
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132126
Log:
PR c++/33553
* pt.c (tsubst) <case INTEGER_TYPE>: Don't issue error if max is
value dependent expression.
* g++.dg/template/array19.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/template/array19.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] [4.1/4.2 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
` (14 preceding siblings ...)
2008-02-05 20:05 ` jakub at gcc dot gnu dot org
@ 2008-02-05 20:08 ` jakub at gcc dot gnu dot org
2008-05-19 20:29 ` jsm28 at gcc dot gnu dot org
` (2 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-02-05 20:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from jakub at gcc dot gnu dot org 2008-02-05 20:08 -------
Fixed on the trunk so far.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|4.1.2 4.2.0 4.3.0 |4.1.2 4.2.0
Known to work|4.1.1 |4.1.1 4.3.0
Summary|[4.1/4.2/4.3 Regression] |[4.1/4.2 Regression] Bogus
|Bogus "array bound is not an|"array bound is not an
|integer constant" for |integer constant" for
|parameter in template method|parameter in template method
|of template class |of template class
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] [4.1/4.2 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
` (15 preceding siblings ...)
2008-02-05 20:08 ` [Bug c++/33553] [4.1/4.2 " jakub at gcc dot gnu dot org
@ 2008-05-19 20:29 ` jsm28 at gcc dot gnu dot org
2008-07-04 22:51 ` [Bug c++/33553] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-30 22:28 ` jsm28 at gcc dot gnu dot org
18 siblings, 0 replies; 20+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-05-19 20:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from jsm28 at gcc dot gnu dot org 2008-05-19 20:23 -------
4.2.4 is being released, changing milestones to 4.2.5.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.4 |4.2.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] [4.2 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
` (16 preceding siblings ...)
2008-05-19 20:29 ` jsm28 at gcc dot gnu dot org
@ 2008-07-04 22:51 ` jsm28 at gcc dot gnu dot org
2009-03-30 22:28 ` jsm28 at gcc dot gnu dot org
18 siblings, 0 replies; 20+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 22:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from jsm28 at gcc dot gnu dot org 2008-07-04 22:50 -------
Closing 4.1 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.1/4.2 Regression] Bogus |[4.2 Regression] Bogus
|"array bound is not an |"array bound is not an
|integer constant" for |integer constant" for
|parameter in template method|parameter in template method
|of template class |of template class
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug c++/33553] [4.2 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class
2007-09-25 15:02 [Bug c++/33553] New: Bogus "array bound is not an integer constant" for parameter in template method of template class e dot tadeu at gmail dot com
` (17 preceding siblings ...)
2008-07-04 22:51 ` [Bug c++/33553] [4.2 " jsm28 at gcc dot gnu dot org
@ 2009-03-30 22:28 ` jsm28 at gcc dot gnu dot org
18 siblings, 0 replies; 20+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-30 22:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #16 from jsm28 at gcc dot gnu dot org 2009-03-30 22:28 -------
Closing 4.2 branch, fixed in 4.3.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to fail|4.1.2 4.2.0 |4.1.2 4.2.0 4.2.5
Resolution| |FIXED
Target Milestone|4.2.5 |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33553
^ permalink raw reply [flat|nested] 20+ messages in thread