--- Comment #8 from pinskia at gcc dot gnu dot org 2006-10-12 03:44 ---
I think this was caused by PR 29226.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #7 from pinskia at gcc dot gnu dot org 2006-10-12 03:39 ---
Works in 4.0.4 20061011.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
Known
--- Comment #6 from pinskia at gcc dot gnu dot org 2006-10-12 03:37 ---
The code in comment # 5 is invalid but even if we make it valid like below, it
still ICEs:
template < class T > struct Rgb{};
template < int>int Camera1 ()
{
sizeof (Rgb < int>);
}
--
http://gcc.gnu.org/bugzilla
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-10-12 03:36 ---
Reduced testcase:
template < class T > struct Rgb;
template < int>int Camera1 ()
{
sizeof (Rgb < int>);
}
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
---
--- Comment #4 from tbm at cyrius dot com 2006-10-11 23:19 ---
(gdb) where
#0 0x0045a5ce in cxx_sizeof_or_alignof_type (type=0x2b29cf3e6b00,
op=214, complain=1 '\001')
at /home/tbm/scratch/gcc-4.1/gcc/cp/typeck.c:1251
#1 0x0044a947 in cp_parser_unary_expression (par
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-10-11 23:05 ---
I think this is a sizeof issue:
sizeof (Rgb < XYindex >)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29435
--- Comment #2 from tbm at cyrius dot com 2006-10-11 23:02 ---
Ignore my comment about x86_64. I also see this on mips.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29435
--- Comment #1 from tbm at cyrius dot com 2006-10-11 23:01 ---
Created an attachment (id=12413)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12413&action=view)
testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29435