[Bug c++/14246] [3.4/3.5 Regression] Problems with templates, ice in write_template_arg_literal
giovannibajo at libero dot it
gcc-bugzilla@gcc.gnu.org
Mon Feb 23 02:15:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list