This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/10939] [3.3/3.4 regression] ICE with templated code
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 May 2003 18:17:48 -0000
- Subject: [Bug c++/10939] [3.3/3.4 regression] ICE with templated code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10939
giovannibajo@libero.it changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Summary|ICE with templated code |[3.3/3.4 regression] ICE
|[Regression form 2.95.3] |with templated code
------- Additional Comments From giovannibajo@libero.it 2003-05-22 18:17 -------
Confirmed, a regression. Slightly reduced testcode is:
------------------------------------------
template <typename T1, typename T2>
void f(T1,T2) {}
template <void F(int, int)>
struct A
{
template <typename Q>
void g(Q i) {}
};
int main()
{
A<f> a;
a.g(0);
}
------------------------------------------
pr10939.cpp: In function `int main()':
pr10939.cpp:2: internal compiler error: tree check: accessed elt 2 of tree_vec
with 1 elts in tsubst, at cp/pt.c:6672
Please submit a full bug report,
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.