* [Bug c++/20220] [4.0/4.1 Regression] Rejecting invalid template code, breaks most of Boost
2005-02-26 23:46 [Bug c++/20220] New: [4.0/4.1 Regression] Rejecting invalid template code, breaks most of Boost giovannibajo at libero dot it
@ 2005-02-26 23:55 ` pinskia at gcc dot gnu dot org
2005-02-27 0:02 ` giovannibajo at libero dot it
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-26 23:55 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Target Milestone|--- |4.0.0
Version|unknown |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20220
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/20220] [4.0/4.1 Regression] Rejecting invalid template code, breaks most of Boost
2005-02-26 23:46 [Bug c++/20220] New: [4.0/4.1 Regression] Rejecting invalid template code, breaks most of Boost giovannibajo at libero dot it
2005-02-26 23:55 ` [Bug c++/20220] " pinskia at gcc dot gnu dot org
@ 2005-02-27 0:02 ` giovannibajo at libero dot it
2005-02-27 0:06 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: giovannibajo at libero dot it @ 2005-02-27 0:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2005-02-26 00:46 -------
Created an attachment (id=8288)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8288&action=view)
Preprocessed source (to be reduced)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20220
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/20220] [4.0/4.1 Regression] Rejecting invalid template code, breaks most of Boost
2005-02-26 23:46 [Bug c++/20220] New: [4.0/4.1 Regression] Rejecting invalid template code, breaks most of Boost giovannibajo at libero dot it
2005-02-26 23:55 ` [Bug c++/20220] " pinskia at gcc dot gnu dot org
2005-02-27 0:02 ` giovannibajo at libero dot it
@ 2005-02-27 0:06 ` pinskia at gcc dot gnu dot org
2005-02-27 0:10 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-27 0:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-26 00:55 -------
Easy reduction:
template <class T, T i> class b {};
template <class T, T i> class a
{
static const T value = i;
b<T, static_cast<T>(value+1) > next;
};
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-02-26 00:55:09
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20220
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/20220] [4.0/4.1 Regression] Rejecting invalid template code, breaks most of Boost
2005-02-26 23:46 [Bug c++/20220] New: [4.0/4.1 Regression] Rejecting invalid template code, breaks most of Boost giovannibajo at libero dot it
` (2 preceding siblings ...)
2005-02-27 0:06 ` pinskia at gcc dot gnu dot org
@ 2005-02-27 0:10 ` pinskia at gcc dot gnu dot org
2005-02-27 4:41 ` giovannibajo at libero dot it
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-27 0:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-26 00:58 -------
This worked with 4.0.0 20050113 but fails with 20050210.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20220
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/20220] [4.0/4.1 Regression] Rejecting invalid template code, breaks most of Boost
2005-02-26 23:46 [Bug c++/20220] New: [4.0/4.1 Regression] Rejecting invalid template code, breaks most of Boost giovannibajo at libero dot it
` (3 preceding siblings ...)
2005-02-27 0:10 ` pinskia at gcc dot gnu dot org
@ 2005-02-27 4:41 ` giovannibajo at libero dot it
2005-02-28 12:50 ` pinskia at gcc dot gnu dot org
2005-03-01 14:32 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: giovannibajo at libero dot it @ 2005-02-27 4:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2005-02-26 12:01 -------
I forgot to thank Martin Wille for notifying me of this bug and providing me
with this testcase.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20220
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/20220] [4.0/4.1 Regression] Rejecting invalid template code, breaks most of Boost
2005-02-26 23:46 [Bug c++/20220] New: [4.0/4.1 Regression] Rejecting invalid template code, breaks most of Boost giovannibajo at libero dot it
` (4 preceding siblings ...)
2005-02-27 4:41 ` giovannibajo at libero dot it
@ 2005-02-28 12:50 ` pinskia at gcc dot gnu dot org
2005-03-01 14:32 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-28 12:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-28 01:09 -------
(In reply to comment #3)
> This worked with 4.0.0 20050113 but fails with 20050210.
To get a smaller window, it fails with 20050201.
Hmm, it passes with 20050225.
I think this was fixed by:
PR c++/19991
* init.c (integral_constant_value): Iterate if the value of a decl
is itself a constant.
Since this is fixed both the orginal full test case and the reduced version, I am going to close it as fixed.
Giovanni if you want to apply the testcase I think that would be useful for the future.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20220
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/20220] [4.0/4.1 Regression] Rejecting invalid template code, breaks most of Boost
2005-02-26 23:46 [Bug c++/20220] New: [4.0/4.1 Regression] Rejecting invalid template code, breaks most of Boost giovannibajo at libero dot it
` (5 preceding siblings ...)
2005-02-28 12:50 ` pinskia at gcc dot gnu dot org
@ 2005-03-01 14:32 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-01 14:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-01 14:32 -------
*** Bug 20261 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |redi at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20220
^ permalink raw reply [flat|nested] 8+ messages in thread