This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15554] [3.4/3.5 Regression] ICE in tsubst_copy, at cp/pt.c:7433
- From: "hzoli at austin dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jun 2004 16:46:37 -0000
- Subject: [Bug c++/15554] [3.4/3.5 Regression] ICE in tsubst_copy, at cp/pt.c:7433
- References: <20040520165453.15554.hzoli@austin.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From hzoli at austin dot ibm dot com 2004-06-08 16:46 -------
(In reply to comment #5)
> Fixed in GCC 3.4.1.
The ICE is fixed, however the real construct I am trying to
use is still not working. Consider a slight modification
of the testcase:
template <int n> struct T1 { enum { N = 3 }; };
template <int n> struct T2 { enum { N = n, N1 = T1<N>::N }; };
This gives the following error message:
ice.C:2: error: non-constant `n' cannot be used as template argument
ice.C:2: error: `N' is not a member of `<declaration error>'
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15554