This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14246] [3.4/3.5 Regression] Problems with templates, ice in write_template_arg_literal
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Feb 2004 02:15:14 -0000
- Subject: [Bug c++/14246] [3.4/3.5 Regression] Problems with templates, ice in write_template_arg_literal
- References: <20040222224050.14246.schmid@snake.iap.physik.tu-darmstadt.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-02-23 02:15 -------
Redux:
---------------------------------------------
template <typename T>
struct A {
enum { Yes = (sizeof(T) == 1) };
};
template<bool T>
struct B {
void foo(void);
};
template struct B< !A<int>::Yes >;
---------------------------------------------
We crash trying to produce a mangled name for the instantiation of the foo()
member function, because the template argument is an INTEGER_CST with value 1
and type boolean instead of boolean_true_node.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14246